chiark / gitweb /
resolved: rename resolved.h to resolved-manager.h
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Aug 2014 14:14:59 +0000 (16:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Aug 2014 14:14:59 +0000 (16:14 +0200)
After all it pretty much exlcusively containers definitions about the
"Manager" object, hence let's call this the most obvious way.

12 files changed:
Makefile.am
src/resolve/resolved-bus.c
src/resolve/resolved-bus.h [new file with mode: 0644]
src/resolve/resolved-conf.h
src/resolve/resolved-dns-query.h
src/resolve/resolved-dns-scope.h
src/resolve/resolved-dns-server.h
src/resolve/resolved-dns-stream.h
src/resolve/resolved-link.h
src/resolve/resolved-manager.c
src/resolve/resolved-manager.h [moved from src/resolve/resolved.h with 99% similarity]
src/resolve/resolved.c

index fb43b41..30b2589 100644 (file)
@@ -4732,12 +4732,13 @@ endif
 # ------------------------------------------------------------------------------
 if ENABLE_RESOLVED
 systemd_resolved_SOURCES = \
-       src/resolve/resolved.h \
        src/resolve/resolved.c \
        src/resolve/resolved-manager.c \
+       src/resolve/resolved-manager.h \
        src/resolve/resolved-conf.c \
        src/resolve/resolved-conf.h \
        src/resolve/resolved-bus.c \
+       src/resolve/resolved-bus.h \
        src/resolve/resolved-link.h \
        src/resolve/resolved-link.c \
        src/resolve/resolved-dns-domain.h \
index 6bd2b53..fa00b3d 100644 (file)
@@ -22,8 +22,8 @@
 #include "bus-errors.h"
 #include "bus-util.h"
 
-#include "resolved.h"
 #include "resolved-dns-domain.h"
+#include "resolved-bus.h"
 
 static int reply_query_state(DnsQuery *q) {
         _cleanup_free_ char *ip = NULL;
diff --git a/src/resolve/resolved-bus.h b/src/resolve/resolved-bus.h
new file mode 100644 (file)
index 0000000..1e72891
--- /dev/null
@@ -0,0 +1,26 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#pragma once
+
+/***
+  This file is part of systemd.
+
+  Copyright 2014 Lennart Poettering
+
+  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.
+
+  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 systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
+#include "resolved-manager.h"
+
+int manager_connect_bus(Manager *m);
index cdd68fe..b3dbea7 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "resolved.h"
+#include "resolved-manager.h"
 
 int manager_parse_dns_server(Manager *m, DnsServerType type, const char *string);
 int manager_parse_config_file(Manager *m);
index 7fc11df..adaf7b2 100644 (file)
 
 typedef struct DnsQuery DnsQuery;
 
-#include "resolved.h"
 #include "resolved-dns-scope.h"
 #include "resolved-dns-rr.h"
 #include "resolved-dns-question.h"
 #include "resolved-dns-answer.h"
 #include "resolved-dns-stream.h"
 #include "resolved-dns-transaction.h"
+#include "resolved-manager.h"
 
 struct DnsQuery {
         Manager *manager;
index 67a6ba2..8f42068 100644 (file)
 
 typedef struct DnsScope DnsScope;
 
-#include "resolved.h"
-#include "resolved-link.h"
 #include "resolved-dns-server.h"
 #include "resolved-dns-packet.h"
 #include "resolved-dns-query.h"
 #include "resolved-dns-cache.h"
 #include "resolved-dns-zone.h"
 #include "resolved-dns-stream.h"
+#include "resolved-manager.h"
+#include "resolved-link.h"
 
 typedef enum DnsScopeMatch {
         DNS_SCOPE_NO,
index 358bbd4..8a9f556 100644 (file)
@@ -26,9 +26,8 @@
 typedef struct DnsServer DnsServer;
 typedef enum DnsServerSource DnsServerSource;
 
-#include "resolved.h"
+#include "resolved-manager.h"
 #include "resolved-link.h"
-#include "resolved-dns-server.h"
 
 typedef enum DnsServerType {
         DNS_SERVER_SYSTEM,
index fc24bb6..46eae31 100644 (file)
@@ -25,9 +25,9 @@
 
 typedef struct DnsStream DnsStream;
 
-#include "resolved.h"
 #include "resolved-dns-packet.h"
 #include "resolved-dns-transaction.h"
+#include "resolved-manager.h"
 
 struct DnsStream {
         Manager *manager;
index 3cafaab..d29311e 100644 (file)
 typedef struct Link Link;
 typedef struct LinkAddress LinkAddress;
 
-#include "resolved.h"
 #include "resolved-dns-server.h"
 #include "resolved-dns-scope.h"
 #include "resolved-dns-rr.h"
+#include "resolved-manager.h"
 
 struct LinkAddress {
         Link *link;
index ffb356e..1e86c10 100644 (file)
 #include "af-list.h"
 #include "utf8.h"
 
-#include "resolved.h"
-#include "resolved-conf.h"
 #include "resolved-dns-domain.h"
+#include "resolved-conf.h"
+#include "resolved-bus.h"
+#include "resolved-manager.h"
 
 #define SEND_TIMEOUT_USEC (200 * USEC_PER_MSEC)
 
similarity index 99%
rename from src/resolve/resolved.h
rename to src/resolve/resolved-manager.h
index caac61b..03386f0 100644 (file)
@@ -35,6 +35,7 @@ typedef struct Manager Manager;
 #include "resolved-dns-server.h"
 #include "resolved-dns-scope.h"
 #include "resolved-dns-stream.h"
+#include "resolved-link.h"
 
 typedef enum Support {
         SUPPORT_NO,
@@ -136,7 +137,6 @@ void manager_refresh_rrs(Manager *m);
 int manager_next_hostname(Manager *m);
 
 int manager_our_packet(Manager *m, DnsPacket *p);
-int manager_connect_bus(Manager *m);
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free);
 
index b4d743f..900a36d 100644 (file)
@@ -24,7 +24,7 @@
 #include "mkdir.h"
 #include "capability.h"
 
-#include "resolved.h"
+#include "resolved-manager.h"
 #include "resolved-conf.h"
 
 int main(int argc, char *argv[]) {