mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:45:11 +00:00
[MOD] Make functions for creating a "killer stanza"
Cleaning up the mop...
This commit is contained in:
parent
14ebef53ce
commit
e089cea02a
4 changed files with 46 additions and 16 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <Cytoplasm/Stream.h>
|
||||
|
||||
#include <XML.h>
|
||||
|
||||
typedef struct XMPPComponent {
|
||||
char *host;
|
||||
Stream *stream;
|
||||
|
|
@ -25,4 +27,11 @@ extern void XMPPSendPlain(XMPPComponent *c, char *f, char *t, char *m, char *typ
|
|||
|
||||
/* Closes a raw component stream. */
|
||||
extern void XMPPEndCompStream(XMPPComponent *stream);
|
||||
|
||||
/* Sends a loopback stanza (a "killstanza"), used to kill an XMPP listener
|
||||
* thread. */
|
||||
extern void XMPPKillThread(XMPPComponent *jabber);
|
||||
|
||||
/* Checks if a stanza is a "killstanza". */
|
||||
extern bool XMPPIsKiller(XMLElement *);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue