]> git.ipfire.org Git - people/ms/network.git/commitdiff
networkd: Add a dummy bus implementation for zones
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Feb 2023 23:19:03 +0000 (23:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Feb 2023 23:24:28 +0000 (23:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/networkd/zone-bus.c [new file with mode: 0644]
src/networkd/zone-bus.h [new file with mode: 0644]

index 3a3f82c3e0b5a29f40507bbb454da67973307ece..2046fef2a31a682af179d4ab6867a6028a7c5c4d 100644 (file)
@@ -318,7 +318,9 @@ dist_networkd_SOURCES = \
        src/networkd/main.c \
        src/networkd/string.h \
        src/networkd/zone.c \
-       src/networkd/zone.h
+       src/networkd/zone.h \
+       src/networkd/zone-bus.c \
+       src/networkd/zone-bus.h
 
 networkd_CPPFLAGS = \
        $(AM_CPPFLAGS) \
diff --git a/src/networkd/zone-bus.c b/src/networkd/zone-bus.c
new file mode 100644 (file)
index 0000000..97396c5
--- /dev/null
@@ -0,0 +1,27 @@
+/*#############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2023 IPFire Network Development Team                          #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program 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 General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+#include "bus.h"
+#include "zone-bus.h"
+
+const struct nw_bus_implementation zone_bus_impl = {
+       "/org/ipfire/network1/zone",
+       "org.ipfire.network1.Zone",
+};
diff --git a/src/networkd/zone-bus.h b/src/networkd/zone-bus.h
new file mode 100644 (file)
index 0000000..0d5583e
--- /dev/null
@@ -0,0 +1,28 @@
+/*#############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2023 IPFire Network Development Team                          #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program 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 General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+#ifndef NETWORKD_ZONE_BUS_H
+#define NETWORKD_ZONE_BUS_H
+
+#include "bus.h"
+
+extern const struct nw_bus_implementation zone_bus_impl;
+
+#endif /* NETWORKD_ZONE_BUS_H */