1 /* Internal data structures that should be opaque to outside viewers */
2 #ifndef CONFLATE_INTERNAL_H
3 #define CONFLATE_INTERNAL_H 1
4 
5 #include <platform/platform.h>
6 
7 #ifdef CONFLATE_USE_XMPP
8 #include <strophe.h>
9 #else
10 #define xmpp_ctx_t void
11 #define xmpp_conn_t void
12 #endif
13 
14 struct _conflate_handle {
15 
16     xmpp_ctx_t *ctx;
17     xmpp_conn_t *conn;
18 
19     conflate_config_t *conf;
20 
21     cb_thread_t thread;
22 
23     char *url; /* Current URL for debuggability. */
24 };
25 
26 void conflate_init_commands(void);
27 
28 #endif /* CONFLATE_INTERNAL_H */
29