summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-resolve/resolve-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-04-29 15:44:31 +0200
committerLennart Poettering <lennart@poettering.net>2014-04-29 15:45:16 +0200
commit93f1bcf40030a9e98bf2b71c177cbea36c64d5c9 (patch)
tree96f63cc636ffa43f92f805a7f0bac73d48faa18d /src/libsystemd/sd-resolve/resolve-util.h
parent4c06153f7b7d1af4fc8df4602c1d6714734bf9fd (diff)
sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and sd-event
Diffstat (limited to 'src/libsystemd/sd-resolve/resolve-util.h')
-rw-r--r--src/libsystemd/sd-resolve/resolve-util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd/sd-resolve/resolve-util.h b/src/libsystemd/sd-resolve/resolve-util.h
index 7da1d7b1cf..019cdaffe1 100644
--- a/src/libsystemd/sd-resolve/resolve-util.h
+++ b/src/libsystemd/sd-resolve/resolve-util.h
@@ -22,8 +22,10 @@
***/
#include "util.h"
+#include "sd-resolve.h"
DEFINE_TRIVIAL_CLEANUP_FUNC(sd_resolve*, sd_resolve_unref);
-DEFINE_TRIVIAL_CLEANUP_FUNC(struct addrinfo*, sd_resolve_freeaddrinfo);
+DEFINE_TRIVIAL_CLEANUP_FUNC(sd_resolve_query*, sd_resolve_query_unref);
+
#define _cleanup_resolve_unref_ _cleanup_(sd_resolve_unrefp)
-#define _cleanup_resolve_addrinfo_free_ _cleanup_(sd_resolve_freeaddrinfop)
+#define _cleanup_resolve_query_unref_ _cleanup_(sd_resolve_query_unrefp)