mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[MOD/ADD] Start element/XMPPwerk
XML gave me an aneurysm. I hate this.
This commit is contained in:
parent
79217d3608
commit
138932d637
4 changed files with 204 additions and 0 deletions
19
src/include/XMPP.h
Normal file
19
src/include/XMPP.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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 *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
|
||||
Loading…
Add table
Add a link
Reference in a new issue