#include <gnet.h>
#include <iksemel.h>
+#include <gsasl.h>
#include "nethook.h"
+typedef struct _jabber_data_t jabber_data_t;
+
+struct _jabber_data_t
+{
+ iksparser *parser;
+ Gsasl *ctx;
+ Gsasl_session *client;
+ Gsasl_session *server;
+};
+
+jabber_data_t* jabber_data_new (gpointer, gpointer);
+void jabber_data_destroy (gpointer);
+
net_hook_t* jabber_hook_new (GConn *conn);
void jabber_hook_destroy (net_hook_t*);
net_hook_t* jabber_server_hook_new (net_hook_t*, char*);