[ADD/FIX/WIP] "Fix" concurrency, prepare XEP-0421

I'll need to break down my commits more...
This commit is contained in:
LDA 2024-07-18 15:50:19 +02:00
commit 63c1bc819e
14 changed files with 356 additions and 162 deletions

View file

@ -58,20 +58,24 @@ struct XMPPThread {
XMPPThreadInfo *info;
};
extern int ICollate(unsigned char *cata, unsigned char *catb);
extern int IdentitySort(void *idap, void *idbp);
int ICollate(unsigned char *cata, unsigned char *catb);
int IdentitySort(void *idap, void *idbp);
extern char * ParseeGetBridgedRoom(ParseeData *data, XMLElement *stanza);
extern char * ParseeGetEventFromID(ParseeData *data, XMLElement *stanza, char *id);
extern char * ParseeGetReactedEvent(ParseeData *data, XMLElement *stanza);
extern void ParseePushAllStanza(ParseeData *args, XMLElement *stanza, char *event);
extern bool ParseeVerifyAllStanza(ParseeData *args, XMLElement *stanza);
char * ParseeGetBridgedRoom(ParseeData *data, XMLElement *stanza);
char * ParseeGetEventFromID(ParseeData *data, XMLElement *stanza, char *id);
char * ParseeGetReactedEvent(ParseeData *data, XMLElement *stanza);
void ParseePushAllStanza(ParseeData *args, XMLElement *stanza, char *event);
bool ParseeVerifyAllStanza(ParseeData *args, XMLElement *stanza);
extern HashMap * ShoveStanza(HashMap *content, XMLElement *stanza);
extern void ManageProfileItem(ParseeData *args, XMLElement *item, XMLElement *stanza, XMPPThread *thr);
extern XMLElement * CreatePubsubRequest(char *from, char *to, char *node);
HashMap * ShoveStanza(HashMap *content, XMLElement *stanza);
void ManageProfileItem(ParseeData *args, XMLElement *item, XMLElement *stanza, XMPPThread *thr);
XMLElement * CreatePubsubRequest(char *from, char *to, char *node);
extern bool MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr);
extern void IQStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr);
extern void PresenceStanza(ParseeData *args, XMLElement *stanza);
bool MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr);
void IQStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr);
void PresenceStanza(ParseeData *args, XMLElement *stanza);
bool ServerHasXEP421(ParseeData *data, char *from);
char * ParseeGetBridgedUser(ParseeData *data, XMLElement *stanza);