diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-bus/dns-util.h | 2 | ||||
-rw-r--r-- | src/systemd/sd-dns.h | 34 |
2 files changed, 20 insertions, 16 deletions
diff --git a/src/libsystemd-bus/dns-util.h b/src/libsystemd-bus/dns-util.h index 31d19bd95a..0ca91e0ad9 100644 --- a/src/libsystemd-bus/dns-util.h +++ b/src/libsystemd-bus/dns-util.h @@ -1,5 +1,7 @@ #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); diff --git a/src/systemd/sd-dns.h b/src/systemd/sd-dns.h index 72bc1213ed..38972db5e2 100644 --- a/src/systemd/sd-dns.h +++ b/src/systemd/sd-dns.h @@ -1,31 +1,34 @@ -#ifndef fooasyncnshfoo -#define fooasyncnshfoo +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + +#ifndef foosddnshfoo +#define foosddnshfoo /*** - This file is part of libasyncns. + This file is part of systemd. Copyright 2005-2008 Lennart Poettering - libasyncns is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation, either version 2.1 of the - License, or (at your option) any later version. + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. - libasyncns is distributed in the hope that it will be useful, but + systemd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with libasyncns. If not, see - <http://www.gnu.org/licenses/>. + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> -#include "macro.h" -#include "util.h" +#include "_sd-common.h" + +_SD_BEGIN_DECLARATIONS; + /** \mainpage * * \section moo Method of operation @@ -41,9 +44,6 @@ * your program is not irritated by spurious SIGCHLD signals. */ -/** \example asyncns-test.c - * An example program */ - /** An opaque libasyncns session structure */ typedef struct asyncns asyncns_t; @@ -153,4 +153,6 @@ void asyncns_setuserdata(asyncns_t *asyncns, asyncns_query_t *q, void *userdata) * prior to this call it returns NULL. */ void* asyncns_getuserdata(asyncns_t *asyncns, asyncns_query_t *q); +_SD_END_DECLARATIONS; + #endif |