mirror of
https://github.com/systemd/systemd.git
synced 2026-08-11 17:45:59 +00:00
various: make bus objects static
This commit is contained in:
@@ -850,7 +850,7 @@ static int bus_home_node_enumerator(
|
||||
return 1;
|
||||
}
|
||||
|
||||
const sd_bus_vtable home_vtable[] = {
|
||||
static const sd_bus_vtable home_vtable[] = {
|
||||
SD_BUS_VTABLE_START(0),
|
||||
|
||||
SD_BUS_PROPERTY("UserName", "s",
|
||||
|
||||
@@ -443,7 +443,7 @@ static int image_node_enumerator(sd_bus *bus, const char *path, void *userdata,
|
||||
return 1;
|
||||
}
|
||||
|
||||
const sd_bus_vtable image_vtable[] = {
|
||||
static const sd_bus_vtable image_vtable[] = {
|
||||
SD_BUS_VTABLE_START(0),
|
||||
SD_BUS_PROPERTY("Name", "s", NULL, offsetof(Image, name), 0),
|
||||
SD_BUS_PROPERTY("Path", "s", NULL, offsetof(Image, path), 0),
|
||||
|
||||
@@ -1219,7 +1219,7 @@ static int method_map_to_machine_group(sd_bus_message *message, void *userdata,
|
||||
return sd_bus_reply_method_return(message, "sou", machine->name, o, (uint32_t) converted);
|
||||
}
|
||||
|
||||
const sd_bus_vtable manager_vtable[] = {
|
||||
static const sd_bus_vtable manager_vtable[] = {
|
||||
SD_BUS_VTABLE_START(0),
|
||||
|
||||
SD_BUS_PROPERTY("PoolPath", "s", property_get_pool_path, 0, 0),
|
||||
|
||||
@@ -1109,7 +1109,7 @@ static const sd_bus_vtable timedate_vtable[] = {
|
||||
SD_BUS_VTABLE_END,
|
||||
};
|
||||
|
||||
const BusObjectImplementation manager_object = {
|
||||
static const BusObjectImplementation manager_object = {
|
||||
"/org/freedesktop/timedate1",
|
||||
"org.freedesktop.timedate1",
|
||||
.vtables = BUS_VTABLES(timedate_vtable),
|
||||
|
||||
Reference in New Issue
Block a user