Added id handler

This commit is contained in:
James Booth
2015-05-16 21:55:51 +01:00
parent 50cd28a977
commit ede3ccab9d
10 changed files with 88 additions and 11 deletions

View File

@@ -6,8 +6,9 @@
typedef void (*stream_start_func)(XMPPClient *client);
typedef void (*auth_func)(XMPPStanza *stanza, XMPPClient *client);
typedef void (*id_func)(const char *id, XMPPClient *client);
void parser_init(XMPPClient *client, stream_start_func startcb, auth_func authcb);
void parser_init(XMPPClient *client, stream_start_func startcb, auth_func authcb, id_func);
int parser_feed(char *chunk, int len);
void parser_close(void);
void parser_reset(void);