Skip to content

Commit aec8de6

Browse files
committed
core: no need to list properties for PropertiesChanged messages anymore
Since the vtable includes this information anyway, let's just use that
1 parent a03e433 commit aec8de6

32 files changed

+19
-118
lines changed

src/core/automount.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ const UnitVTable automount_vtable = {
874874

875875
.bus_interface = "org.freedesktop.systemd1.Automount",
876876
.bus_vtable = bus_automount_vtable,
877-
.bus_changing_properties = bus_automount_changing_properties,
878877

879878
.shutdown = automount_shutdown,
880879

src/core/busname.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ const UnitVTable busname_vtable = {
584584

585585
.bus_interface = "org.freedesktop.systemd1.BusName",
586586
.bus_vtable = bus_busname_vtable,
587-
.bus_changing_properties = bus_busname_changing_properties,
588587

589588
.status_message_formats = {
590589
.finished_start_job = {

src/core/dbus-automount.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ const sd_bus_vtable bus_automount_vtable[] = {
3434
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Automount, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
3535
SD_BUS_VTABLE_END
3636
};
37-
38-
const char* const bus_automount_changing_properties[] = {
39-
"Result",
40-
NULL
41-
};

src/core/dbus-automount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@
2424
#include "sd-bus.h"
2525

2626
extern const sd_bus_vtable bus_automount_vtable[];
27-
extern const char* const bus_automount_changing_properties[];

src/core/dbus-busname.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,3 @@ const sd_bus_vtable bus_busname_vtable[] = {
3333
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(BusName, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
3434
SD_BUS_VTABLE_END
3535
};
36-
37-
const char* const bus_busname_changing_properties[] = {
38-
"Result",
39-
NULL
40-
};

src/core/dbus-busname.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@
2525
#include "unit.h"
2626

2727
extern const sd_bus_vtable bus_busname_vtable[];
28-
extern const char* const bus_busname_changing_properties[];

src/core/dbus-device.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,3 @@ const sd_bus_vtable bus_device_vtable[] = {
2929
SD_BUS_PROPERTY("SysFSPath", "s", NULL, offsetof(Device, sysfs), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
3030
SD_BUS_VTABLE_END
3131
};
32-
33-
const char* const bus_device_changing_properties[] = {
34-
"SysFSPath",
35-
NULL
36-
};

src/core/dbus-device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@
2525
#include "unit.h"
2626

2727
extern const sd_bus_vtable bus_device_vtable[];
28-
extern const char* const bus_device_changing_properties[];

src/core/dbus-mount.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ const sd_bus_vtable bus_mount_vtable[] = {
124124
SD_BUS_VTABLE_END
125125
};
126126

127-
const char * const bus_mount_changing_properties[] = {
128-
"What",
129-
"Options",
130-
"Type",
131-
"ControlPID",
132-
"Result",
133-
NULL
134-
};
135-
136127
int bus_mount_set_property(
137128
Unit *u,
138129
const char *name,

src/core/dbus-mount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "unit.h"
2626

2727
extern const sd_bus_vtable bus_mount_vtable[];
28-
extern const char * const bus_mount_changing_properties[];
2928

3029
int bus_mount_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
3130
int bus_mount_commit_properties(Unit *u);

0 commit comments

Comments
 (0)