Allow extensions to be registered
[cascardo/chat.git] / xmpp_internal.h
index f57c688..2a120e0 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef HC_XMPP_INTERNAL_H
 #define HC_XMPP_INTERNAL_H
 
+#include <glib.h>
+#include <gsasl.h>
 #include <iksemel.h>
 #include "xmpp.h"
 
@@ -35,10 +37,22 @@ enum
 struct _hc_xmpp_t
 {
   char *server;
+  char *user;
+  char *password;
   iksparser *parser;
+  Gsasl *sasl_ctx;
+  Gsasl_session *sasl_session;
+  GHashTable *nshooks;
   int fd;
   int tls;
   int sasl;
+  int bind;
+  int session;
+  int status;
 };
 
+void hc_xmpp_hook_bind (hc_xmpp_t *, iks *);
+void hc_xmpp_hook_session (hc_xmpp_t *, iks *);
+void hc_xmpp_hook_disco (hc_xmpp_t *, iks *);
+
 #endif