From: Michael Tremer Date: Wed, 1 Feb 2023 23:19:03 +0000 (+0000) Subject: networkd: Add a dummy bus implementation for zones X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=commitdiff_plain;h=ed00ef209405d6da4478a8eb050e8792187a2619 networkd: Add a dummy bus implementation for zones Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 3a3f82c3..2046fef2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 00000000..97396c51 --- /dev/null +++ b/src/networkd/zone-bus.c @@ -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 . # +# # +#############################################################################*/ + +#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 index 00000000..0d5583ed --- /dev/null +++ b/src/networkd/zone-bus.h @@ -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 . # +# # +#############################################################################*/ + +#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 */