Added stanza callbacks

This commit is contained in:
James Booth
2015-05-14 23:53:05 +01:00
parent d83fd84d98
commit 3b0bdfeb86
4 changed files with 185 additions and 93 deletions

View File

@@ -1,9 +1,16 @@
#ifndef __H_PARSER
#define __H_PARSER
void parser_init(void);
#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);
int parser_feed(char *chunk, int len);
void parser_close(void);
void parser_reset(void);
void parser_show_stanzas(void);
#endif