Skip to content

Commit ceac2c2

Browse files
committed
network: move prototypes related to network Network bus objects to networkd-network-bus.h
1 parent 8fcf1d6 commit ceac2c2

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

src/network/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ sources = files('''
8787
networkd-radv.c
8888
networkd-radv.h
8989
networkd-network-bus.c
90+
networkd-network-bus.h
9091
networkd-network.c
9192
networkd-network.h
9293
networkd-route.c

src/network/networkd-manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "networkd-dhcp6.h"
2525
#include "networkd-link-bus.h"
2626
#include "networkd-manager.h"
27+
#include "networkd-network-bus.h"
2728
#include "networkd-speed-meter.h"
2829
#include "ordered-set.h"
2930
#include "path-util.h"

src/network/networkd-network-bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "alloc-util.h"
44
#include "ether-addr-util.h"
55
#include "networkd-manager.h"
6+
#include "networkd-network-bus.h"
67
#include "string-util.h"
78
#include "strv.h"
89

src/network/networkd-network-bus.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* SPDX-License-Identifier: LGPL-2.1+ */
2+
#pragma once
3+
4+
#include "sd-bus.h"
5+
6+
typedef struct Link Link;
7+
8+
extern const sd_bus_vtable network_vtable[];
9+
10+
int network_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***nodes, sd_bus_error *error);
11+
int network_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);

src/network/networkd-network.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,6 @@ CONFIG_PARSER_PROTOTYPE(config_parse_keep_configuration);
279279

280280
const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
281281

282-
extern const sd_bus_vtable network_vtable[];
283-
284-
int network_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***nodes, sd_bus_error *error);
285-
int network_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);
286-
287282
const char* ipv6_privacy_extensions_to_string(IPv6PrivacyExtensions i) _const_;
288283
IPv6PrivacyExtensions ipv6_privacy_extensions_from_string(const char *s) _pure_;
289284

0 commit comments

Comments
 (0)