Parsee/src/include/XMPP.h
LDA 868f0e4d9c [ADD/WIP] Begin XMPPwerk
The fuck is a stanza? Presence? Why did Prosody not tell me I'm an idiot
when I clearly made a MALFORMED XML document? This and much more, in the
next commit!
2024-06-16 11:08:18 +02:00

19 lines
689 B
C

#ifndef PARSEE_XMPP_H
#define PARSEE_XMPP_H
#include <Cytoplasm/Stream.h>
/* Initialises a raw component stream to host, with an optional port.
* If said port is 0, then it is set to the default Prosody port */
extern Stream * XMPPInitialiseCompStream(char *host, int port);
/* Authenticates a component stream with a given shared secret,
* with a stream ID from the server. This should be called right
* after XMPPInitialiseCompStream. */
extern bool XMPPAuthenticateCompStream(Stream *stream, char *as, char *shared);
/* TODO: XMPP stuff, I don't fucking know, I'm not a Jabbernerd. */
/* Closes a raw component stream. */
extern void XMPPEndCompStream(Stream *stream);
#endif