[MOD] -J and -H flags for the max XMPP/HTTP thread

This commit is contained in:
LDA 2024-08-10 14:10:09 +02:00
commit 4d6ba32e98
5 changed files with 58 additions and 10 deletions

View file

@ -41,6 +41,9 @@ typedef struct ParseeConfig {
/* ------- DB -------- */
char *db_path;
/* - COMMAND-LINE FLAGS - */
int xmpp_threads, http_threads;
} ParseeConfig;
typedef struct ParseeData {
@ -228,7 +231,7 @@ extern void ParseePushHeadTable(char *room, char *id);
extern char *ParseeLookupHead(char *room);
extern void ParseeDestroyHeadTable(void);
/* Disables a user/room/MUC's ability to interact from Parsee, and attempts
/** Disables a user/room/MUC's ability to interact from Parsee, and attempts
* to ban them from rooms where Parsee has the ability to do so ("noflying").
* ---------------
* Returns: NOTHING
@ -236,7 +239,7 @@ extern void ParseeDestroyHeadTable(void);
* Modifies: the database */
extern void ParseeGlobalBan(ParseeData *, char *user, char *reason);
/* Verifies if a user was banned globally. If so (and if {room} is set),
/** Verifies if a user was banned globally. If so (and if {room} is set),
* tries to ban the user from it.
* ---------------
* Returns: NOTHING
@ -254,7 +257,7 @@ extern bool ParseeVerifyDMStanza(ParseeData *data, char *room_id, char *id);
* Modifies: NOTHING */
extern bool ParseeIsAdmin(ParseeData *data, char *user);
/* Measures Parsee's overall uptime.
/** Measures Parsee's overall uptime.
* ----------------
* Returns: uptime since the call to Main in milliseconds.
* Modifies: NOTHING */
@ -295,4 +298,10 @@ extern void ParseeAchievement(const char *func, const char *msg, bool die);
* Thrasher: Free */
extern char * ParseeGenerateMTO(char *common_id);
/** Sets the amount of XMPP/HTTP threads to use
* ----------------------
* Returns: NOTHING
* Modifies: the Parsee config */
extern void ParseeSetThreads(int xmpp, int http);
#endif