diff options
author | Daniel Buch <boogiewasthere@gmail.com> | 2014-01-06 13:41:59 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-11 15:03:25 +0000 |
commit | e963e3ada17e7592ad499b9d7fbb3355287a05ca (patch) | |
tree | 7de6383df371c81f17500f0dd338fa6d534e5c3d /src/libsystemd-bus/dns-util.h | |
parent | e0d4a0ac06afb856c9370c5c256f0f7bb7efdc8e (diff) |
sd-dns: initial commit
Origin: <http://0pointer.de/lennart/projects/libasyncns/>
[tomegun: renamed some more files asyncns -> sd-dns and moved to libsystemd-bus as
requested by Lennart]
Diffstat (limited to 'src/libsystemd-bus/dns-util.h')
-rw-r--r-- | src/libsystemd-bus/dns-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsystemd-bus/dns-util.h b/src/libsystemd-bus/dns-util.h new file mode 100644 index 0000000000..31d19bd95a --- /dev/null +++ b/src/libsystemd-bus/dns-util.h @@ -0,0 +1,8 @@ +#pragma once + +DEFINE_TRIVIAL_CLEANUP_FUNC(asyncns_t*, asyncns_free); +DEFINE_TRIVIAL_CLEANUP_FUNC(unsigned char *, asyncns_freeanswer); +DEFINE_TRIVIAL_CLEANUP_FUNC(struct addrinfo*, asyncns_freeaddrinfo); +#define _cleanup_asyncns_free_ _cleanup_(asyncns_freep) +#define _cleanup_asyncns_answer_free_ _cleanup_(asyncns_freeanswerp) +#define _cleanup_asyncns_addrinfo_free_ _cleanup_(asyncns_freeaddrinfop) |