summaryrefslogtreecommitdiff
path: root/src/rexmpp_dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rexmpp_dns.h')
-rw-r--r--src/rexmpp_dns.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rexmpp_dns.h b/src/rexmpp_dns.h
index abfe6b7..06aea8a 100644
--- a/src/rexmpp_dns.h
+++ b/src/rexmpp_dns.h
@@ -21,21 +21,21 @@
*/
#if defined(USE_UNBOUND)
#include <unbound.h>
-struct rexmpp_dns_ctx {
- struct ub_ctx *ctx;
-};
+typedef struct ub_ctx* rexmpp_dns_ctx_t;
+/* struct rexmpp_dns_ctx { */
+/* struct ub_ctx *ctx; */
+/* }; */
#elif defined(USE_CARES)
#include <ares.h>
-struct rexmpp_dns_ctx {
- ares_channel channel;
-};
+typedef ares_channel rexmpp_dns_ctx_t;
+/* struct rexmpp_dns_ctx { */
+/* ares_channel channel; */
+/* }; */
#else
-struct rexmpp_dns_ctx {
- int dummy;
-};
+typedef void* rexmpp_dns_ctx_t;
#endif
-typedef struct rexmpp_dns_ctx rexmpp_dns_ctx_t;
+/* typedef struct rexmpp_dns_ctx rexmpp_dns_ctx_t; */
struct rexmpp_dns_srv {
uint16_t priority;