[MOD] Cache disco

This commit is contained in:
LDA 2024-08-30 18:13:24 +02:00
commit 9d9453f96a
7 changed files with 44 additions and 25 deletions

View file

@ -5,6 +5,7 @@
* <p>TODO: Consider separating some declarations here...</p>
* --------
* Writren-By: LDA */
typedef struct ParseeData ParseeData;
#include <Cytoplasm/HttpServer.h>
#include <Cytoplasm/HttpRouter.h>

View file

@ -102,7 +102,13 @@ extern void XMPPAnnotatePresence(XMLElement *presence);
extern bool XMPPHasError(XMLElement *stanza, char *type);
extern XMLElement * XMPPSendDisco(XMPPComponent *jabber, char *from, char *to);
#include <Parsee.h>
/** Sends a XMPP discovery request to an entity, and caches it if possible.
* ------------------------------------------------------------------------
* Returns: a valid XML element[HEAP]
* Modifies: the {data}'s cache
* Thrasher: XMLFreeElement */
extern XMLElement * XMPPSendDisco(ParseeData *data, char *from, char *to);
extern bool XMPPDiscoAdvertises(XMLElement *disco, char *var);