projects
/
cascardo
/
chat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize sentmsghook to NULL
[cascardo/chat.git]
/
xmpp_internal.h
diff --git
a/xmpp_internal.h
b/xmpp_internal.h
index
a1431e9
..
68c60d6
100644
(file)
--- a/
xmpp_internal.h
+++ b/
xmpp_internal.h
@@
-20,6
+20,9
@@
#ifndef HC_XMPP_INTERNAL_H
#define HC_XMPP_INTERNAL_H
#ifndef HC_XMPP_INTERNAL_H
#define HC_XMPP_INTERNAL_H
+#include <glib.h>
+#include <gsasl.h>
+#include <iksemel.h>
#include "xmpp.h"
enum
#include "xmpp.h"
enum
@@
-33,8
+36,25
@@
enum
struct _hc_xmpp_t
{
struct _hc_xmpp_t
{
+ char *server;
+ char *user;
+ char *password;
+ iksparser *parser;
+ Gsasl *sasl_ctx;
+ Gsasl_session *sasl_session;
+ hc_xmpp_hook_t msghook;
+ hc_xmpp_hook_t sentmsghook;
+ GHashTable *nshooks;
+ int fd;
int tls;
int sasl;
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
#endif