mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 18:25:10 +00:00
[MOD] -J and -H flags for the max XMPP/HTTP thread
This commit is contained in:
parent
61b248363d
commit
4d6ba32e98
5 changed files with 58 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue