chiark / gitweb /
sd-dns: cleanup public header
authorTom Gundersen <teg@jklm.no>
Sat, 11 Jan 2014 14:51:30 +0000 (14:51 +0000)
committerTom Gundersen <teg@jklm.no>
Sat, 11 Jan 2014 15:03:25 +0000 (15:03 +0000)
Don't include internal headers
Update license text
Use _SD_BEGIN/END_DECLARATIONS

src/libsystemd-bus/dns-util.h
src/systemd/sd-dns.h

index 31d19bd95ab6dc359fb864a4b8bb7ff314d48bd1..0ca91e0ad9108653c3df0a50cfaec8e2dca4856d 100644 (file)
@@ -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);
index 72bc1213ede2cde1e87637fd0920acf115b850d8..38972db5e2bed292c76a87a47746043b46fb4472 100644 (file)
@@ -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