[MOD/ADD] Start element/XMPPwerk

XML gave me an aneurysm. I hate this.
This commit is contained in:
LDA 2024-06-15 14:29:50 +02:00
commit 138932d637
4 changed files with 204 additions and 0 deletions

37
src/XMPP/Component.c Normal file
View file

@ -0,0 +1,37 @@
#include <XMPP.h>
#include <XML.h>
/* TODO: Write the stream system once we have our XML implementation
* checked out.
*
* Did I mention I _hate_ writing XML SAX parsers? Oh, well, they're
* easier than making a DOM directly, so eeh. */
/* The default component port Prosody uses. */
#define DEFAULT_PROSODY_PORT 5347
Stream *
XMPPInitialiseCompStream(char *host, int port)
{
/* TODO */
(void) host;
(void) port;
return NULL;
}
bool
XMPPAuthenticateCompStream(Stream *stream, char *shared)
{
/* TODO */
(void) stream;
(void) shared;
return NULL;
}
void
XMPPEndCompStream(Stream *stream)
{
(void) stream;
return NULL;
}