diff options
author | defanor <defanor@uberspace.net> | 2023-06-14 08:26:57 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-06-14 08:26:57 +0300 |
commit | 931847c9c0d170410ec210ab558f3bbf6902355b (patch) | |
tree | 4d7bf90b30dc985edfbc09a5d0007b4aac8da533 /src/rexmpp_dns.h | |
parent | 2d4110996bea53a9568b750d00d4dcdcc3907bc6 (diff) |
Use more pointers to other structures from struct rexmpp
Instead of including them. Those structures can vary depending on
configuration options, while for bindings it is easier if they stay
the same, and are mere pointers. Besides, some of them may refer to
opaque Rust-only structures in the future.
Diffstat (limited to 'src/rexmpp_dns.h')
-rw-r--r-- | src/rexmpp_dns.h | 20 |
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; |