mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[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:
parent
f7eace20c7
commit
868f0e4d9c
7 changed files with 207 additions and 11 deletions
14
src/Main.c
14
src/Main.c
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue