various: make bus objects static

This commit is contained in:
Mike Yuan
2026-03-04 13:26:42 +01:00
parent 5aeda638bb
commit 08e4cf491a
4 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),