summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/dns-util.h
blob: 0ca91e0ad9108653c3df0a50cfaec8e2dca4856d (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include "util.h"

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)