core: no need to list properties for PropertiesChanged messages anymore

Since the vtable includes this information anyway, let's just use that
This commit is contained in:
Lennart Poettering
2013-12-22 03:43:03 +01:00
parent a03e4337fd
commit aec8de63b1
32 changed files with 19 additions and 118 deletions

View File

@@ -874,7 +874,6 @@ const UnitVTable automount_vtable = {
.bus_interface = "org.freedesktop.systemd1.Automount",
.bus_vtable = bus_automount_vtable,
.bus_changing_properties = bus_automount_changing_properties,
.shutdown = automount_shutdown,

View File

@@ -584,7 +584,6 @@ const UnitVTable busname_vtable = {
.bus_interface = "org.freedesktop.systemd1.BusName",
.bus_vtable = bus_busname_vtable,
.bus_changing_properties = bus_busname_changing_properties,
.status_message_formats = {
.finished_start_job = {

View File

@@ -34,8 +34,3 @@ const sd_bus_vtable bus_automount_vtable[] = {
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Automount, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_VTABLE_END
};
const char* const bus_automount_changing_properties[] = {
"Result",
NULL
};

View File

@@ -24,4 +24,3 @@
#include "sd-bus.h"
extern const sd_bus_vtable bus_automount_vtable[];
extern const char* const bus_automount_changing_properties[];

View File

@@ -33,8 +33,3 @@ const sd_bus_vtable bus_busname_vtable[] = {
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(BusName, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_VTABLE_END
};
const char* const bus_busname_changing_properties[] = {
"Result",
NULL
};

View File

@@ -25,4 +25,3 @@
#include "unit.h"
extern const sd_bus_vtable bus_busname_vtable[];
extern const char* const bus_busname_changing_properties[];

View File

@@ -29,8 +29,3 @@ const sd_bus_vtable bus_device_vtable[] = {
SD_BUS_PROPERTY("SysFSPath", "s", NULL, offsetof(Device, sysfs), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_VTABLE_END
};
const char* const bus_device_changing_properties[] = {
"SysFSPath",
NULL
};

View File

@@ -25,4 +25,3 @@
#include "unit.h"
extern const sd_bus_vtable bus_device_vtable[];
extern const char* const bus_device_changing_properties[];

View File

@@ -124,15 +124,6 @@ const sd_bus_vtable bus_mount_vtable[] = {
SD_BUS_VTABLE_END
};
const char * const bus_mount_changing_properties[] = {
"What",
"Options",
"Type",
"ControlPID",
"Result",
NULL
};
int bus_mount_set_property(
Unit *u,
const char *name,

View File

@@ -25,7 +25,6 @@
#include "unit.h"
extern const sd_bus_vtable bus_mount_vtable[];
extern const char * const bus_mount_changing_properties[];
int bus_mount_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_mount_commit_properties(Unit *u);

View File

@@ -86,8 +86,3 @@ const sd_bus_vtable bus_path_vtable[] = {
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Path, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_VTABLE_END
};
const char* const bus_path_changing_properties[] = {
"Result",
NULL
};

View File

@@ -25,4 +25,3 @@
#include "sd-bus.h"
extern const sd_bus_vtable bus_path_vtable[];
extern const char* const bus_path_changing_properties[];

View File

@@ -36,11 +36,6 @@ const sd_bus_vtable bus_scope_vtable[] = {
SD_BUS_VTABLE_END
};
const char* const bus_scope_changing_properties[] = {
"Result",
NULL
};
static int bus_scope_set_transient_property(
Scope *s,
const char *name,

View File

@@ -25,7 +25,6 @@
#include "unit.h"
extern const sd_bus_vtable bus_scope_vtable[];
extern const char* const bus_scope_changing_properties[];
int bus_scope_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_scope_commit_properties(Unit *u);

View File

@@ -69,21 +69,6 @@ const sd_bus_vtable bus_service_vtable[] = {
SD_BUS_VTABLE_END
};
const char* const bus_service_changing_properties[] = {
"ExecMainStartTimestamp",
"ExecMainStartTimestampMonotonic",
"ExecMainExitTimestamp",
"ExecMainExitTimestampMonotonic",
"ExecMainPID",
"ExecMainCode",
"ExecMainStatus",
"MainPID",
"ControlPID",
"StatusText",
"Result",
NULL
};
static int bus_service_set_transient_property(
Service *s,
const char *name,

View File

@@ -25,7 +25,6 @@
#include "unit.h"
extern const sd_bus_vtable bus_service_vtable[];
extern const char* const bus_service_changing_properties[];
int bus_service_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_service_commit_properties(Unit *u);

View File

@@ -90,7 +90,6 @@ const sd_bus_vtable bus_socket_vtable[] = {
SD_BUS_PROPERTY("BindIPv6Only", "s", property_get_bind_ipv6_only, offsetof(Socket, bind_ipv6_only), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("Backlog", "u", bus_property_get_unsigned, offsetof(Socket, backlog), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("TimeoutUSec", "t", bus_property_get_usec, offsetof(Socket, timeout_usec), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("ControlPID", "u", bus_property_get_pid, offsetof(Socket, control_pid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_PROPERTY("BindToDevice", "s", NULL, offsetof(Socket, bind_to_device), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("DirectoryMode", "u", bus_property_get_mode, offsetof(Socket, directory_mode), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("SocketMode", "u", bus_property_get_mode, offsetof(Socket, socket_mode), SD_BUS_VTABLE_PROPERTY_CONST),
@@ -110,15 +109,16 @@ const sd_bus_vtable bus_socket_vtable[] = {
SD_BUS_PROPERTY("Listen", "a(ss)", property_get_listen, 0, SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("Mark", "i", bus_property_get_int, offsetof(Socket, mark), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("MaxConnections", "u", bus_property_get_unsigned, offsetof(Socket, max_connections), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("NConnections", "u", bus_property_get_unsigned, offsetof(Socket, n_connections), 0),
SD_BUS_PROPERTY("NAccepted", "u", bus_property_get_unsigned, offsetof(Socket, n_accepted), 0),
SD_BUS_PROPERTY("MessageQueueMaxMessages", "x", bus_property_get_long, offsetof(Socket, mq_maxmsg), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("MessageQueueMessageSize", "x", bus_property_get_long, offsetof(Socket, mq_msgsize), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Socket, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_PROPERTY("ReusePort", "b", bus_property_get_bool, offsetof(Socket, reuse_port), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("SmackLabel", "s", NULL, offsetof(Socket, smack), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("SmackLabelIPIn", "s", NULL, offsetof(Socket, smack_ip_in), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("SmackLabelIPOut", "s", NULL, offsetof(Socket, smack_ip_out), SD_BUS_VTABLE_PROPERTY_CONST),
SD_BUS_PROPERTY("ControlPID", "u", bus_property_get_pid, offsetof(Socket, control_pid), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_PROPERTY("Result", "s", property_get_result, offsetof(Socket, result), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE),
SD_BUS_PROPERTY("NConnections", "u", bus_property_get_unsigned, offsetof(Socket, n_connections), 0),
SD_BUS_PROPERTY("NAccepted", "u", bus_property_get_unsigned, offsetof(Socket, n_accepted), 0),
BUS_EXEC_COMMAND_LIST_VTABLE("ExecStartPre", offsetof(Socket, exec_command[SOCKET_EXEC_START_PRE]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION),
BUS_EXEC_COMMAND_LIST_VTABLE("ExecStartPost", offsetof(Socket, exec_command[SOCKET_EXEC_START_POST]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION),
BUS_EXEC_COMMAND_LIST_VTABLE("ExecStopPre", offsetof(Socket, exec_command[SOCKET_EXEC_STOP_PRE]), SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION),
@@ -126,14 +126,6 @@ const sd_bus_vtable bus_socket_vtable[] = {
SD_BUS_VTABLE_END
};
const char* const bus_socket_changing_properties[] = {
"ControlPID",
"NAccepted",
"NConnections",
"Result",
NULL
};
int bus_socket_set_property(
Unit *u,
const char *name,

View File

@@ -25,7 +25,6 @@
#include "unit.h"
extern const sd_bus_vtable bus_socket_vtable[];
extern const char* const bus_socket_changing_properties[];
int bus_socket_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_socket_commit_properties(Unit *u);

View File

@@ -69,14 +69,6 @@ const sd_bus_vtable bus_swap_vtable[] = {
SD_BUS_VTABLE_END
};
const char* const bus_swap_changing_properties[] = {
"What",
"Priority",
"ControlPID",
"Result",
NULL
};
int bus_swap_set_property(
Unit *u,
const char *name,

View File

@@ -26,7 +26,6 @@
#include "unit.h"
extern const sd_bus_vtable bus_swap_vtable[];
extern const char* const bus_swap_changing_properties[];
int bus_swap_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_swap_commit_properties(Unit *u);

Some files were not shown because too many files have changed in this diff Show More