Set auth properties on XMPPClient

This commit is contained in:
James Booth
2015-05-15 00:58:34 +01:00
parent 62ba2f7ae5
commit 34aca16d4a
7 changed files with 49 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
#ifndef __H_PARSER
#define __H_PARSER
#include "server/stanza.h"
#include "server/xmppclient.h"
typedef void (*stream_start_func)(void * const userdata);
typedef void (*auth_func)(void * const userdata);
typedef void (*stream_start_func)(XMPPClient *client);
typedef void (*auth_func)(XMPPStanza *stanza, XMPPClient *client);
void parser_init(XMPPClient *client, stream_start_func startcb, auth_func authcb);
int parser_feed(char *chunk, int len);