mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 13:45:10 +00:00
[FIX/MOD] Stanza send function, fix some errors
Negociating stanza sizes seems to be real trouble. Also this code is now `-fanalyzer'-safe! Also kills the last GNUMakefile present. It wasn't even used...
This commit is contained in:
parent
d9b5141eb5
commit
ff5f085b7f
24 changed files with 114 additions and 152 deletions
|
|
@ -45,6 +45,7 @@ typedef struct ParseeConfig {
|
|||
char *component_host;
|
||||
char *shared_comp_secret;
|
||||
int component_port;
|
||||
size_t max_stanza_size;
|
||||
|
||||
/* ------- DB -------- */
|
||||
char *db_path;
|
||||
|
|
@ -80,6 +81,7 @@ typedef struct Argument {
|
|||
const char *description;
|
||||
} Argument;
|
||||
|
||||
/* A few helpful macros to make JSON less of a PITA */
|
||||
#define GrabString(obj, ...) JsonValueAsString(JsonGet(obj, __VA_ARGS__))
|
||||
#define GrabInteger(obj, ...) JsonValueAsInteger(JsonGet(obj, __VA_ARGS__))
|
||||
#define GrabBoolean(obj, ...) JsonValueAsBoolean(JsonGet(obj, __VA_ARGS__))
|
||||
|
|
@ -114,6 +116,9 @@ extern void ParseePrintASCII(void);
|
|||
|
||||
/**
|
||||
* Checks if two versions of Parsee can be considered "compatible".
|
||||
* This is mainly used for things like database operations. TODO:
|
||||
* Make an auto-upgrade system to comply with the (undocumented)
|
||||
* rule of "Don't Make The Sysadmin Think About Parsee Too Much".
|
||||
* ---------------
|
||||
* Modifies: NOTHING */
|
||||
extern bool ParseeIsCompatible(char *ver1, char *ver2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue