[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!
This commit is contained in:
LDA 2024-06-16 11:08:18 +02:00
commit 868f0e4d9c
7 changed files with 207 additions and 11 deletions

View file

@ -4,6 +4,7 @@
#include <string.h>
#include <Parsee.h>
#include <XMPP.h>
#include <XML.h>
#include <AS.h>
@ -15,6 +16,19 @@ Main(void)
ParseeData *data;
const ParseeConfig *parsee_conf;
Stream *yaml;
{
char *as = "TODO";
char *shared = "TODO";
Stream *jabber = XMPPInitialiseCompStream(as, 0);
XMPPAuthenticateCompStream(jabber, as, shared);
while (!StreamEof(jabber))
{
StreamPutc(StreamStderr(), StreamGetc(jabber));
StreamFlush(StreamStderr());
}
XMPPEndCompStream(jabber);
return 0;
}
Log(LOG_INFO, "%s - v%s", NAME, VERSION);
ParseeConfigLoad("parsee.json");