diff options
author | Daniel Mack <github@zonque.org> | 2015-07-14 13:26:16 -0400 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-07-14 13:26:16 -0400 |
commit | c0d645b51f6a65a03cce4e29ed276ccdcb5b6ab0 (patch) | |
tree | fb5f6d2154cb7d2a021a57721f5f92962cd24361 /src/resolve/resolved-dns-server.h | |
parent | ca970016b7e5176e94eee3af24a70d5b3355018f (diff) | |
parent | d20b1667dbab8bccf69735523a0d5fc645e81b80 (diff) |
Merge pull request #585 from teg/resolved-harden-2
resolved: harden
Diffstat (limited to 'src/resolve/resolved-dns-server.h')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index 70ff35b08f..06059e8829 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -37,6 +37,8 @@ typedef enum DnsServerType { struct DnsServer { Manager *manager; + unsigned n_ref; + DnsServerType type; Link *link; @@ -57,6 +59,9 @@ int dns_server_new( int family, const union in_addr_union *address); -DnsServer* dns_server_free(DnsServer *s); +DnsServer* dns_server_ref(DnsServer *s); +DnsServer* dns_server_unref(DnsServer *s); + +DEFINE_TRIVIAL_CLEANUP_FUNC(DnsServer*, dns_server_unref); extern const struct hash_ops dns_server_hash_ops; |