35c5a9cae4
Previously, when a bridge or bonding interface is in degraded-carrier state, then we cannot judge the interface has addresses or not. By using the new states, dbus clients can distinguish such situation.
21 lines
1.1 KiB
C
21 lines
1.1 KiB
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include "sd-bus.h"
|
|
|
|
#include "macro.h"
|
|
|
|
typedef struct Link Link;
|
|
|
|
extern const sd_bus_vtable link_vtable[];
|
|
|
|
char *link_bus_path(Link *link);
|
|
int link_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***nodes, sd_bus_error *error);
|
|
int link_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);
|
|
int link_send_changed_strv(Link *link, char **properties);
|
|
int link_send_changed(Link *link, const char *property, ...) _sentinel_;
|
|
|
|
int property_get_operational_state(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|
|
int property_get_carrier_state(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|
|
int property_get_address_state(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
|