Added auth callback, handle close stream

This commit is contained in:
James Booth
2015-05-15 00:44:11 +01:00
parent f57edf876a
commit 62ba2f7ae5
5 changed files with 69 additions and 57 deletions

View File

@@ -4,10 +4,9 @@
#include "server/xmppclient.h"
typedef void (*stream_start_func)(void * const userdata);
typedef void (*stream_end_func)(void * const userdata);
typedef void (*auth_func)(void * const userdata);
void parser_init(XMPPClient *client, stream_start_func startcb, stream_end_func endcb, auth_func authcb);
void parser_init(XMPPClient *client, stream_start_func startcb, auth_func authcb);
int parser_feed(char *chunk, int len);
void parser_close(void);
void parser_reset(void);