diff options
Diffstat (limited to 'src/shared/bus-map-properties.c')
-rw-r--r-- | src/shared/bus-map-properties.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/bus-map-properties.c b/src/shared/bus-map-properties.c index aa17ded5a3..a6cd752894 100644 --- a/src/shared/bus-map-properties.c +++ b/src/shared/bus-map-properties.c @@ -10,6 +10,8 @@ int bus_map_id128(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_err sd_id128_t *p = userdata; int r; + assert(m); + r = bus_message_read_id128(m, p); if (r < 0) return bus_log_parse_error_debug(r); @@ -21,6 +23,8 @@ int bus_map_strv_sort(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus char ***p = ASSERT_PTR(userdata); int r; + assert(m); + r = sd_bus_message_read_strv_extend(m, p); if (r < 0) return bus_log_parse_error_debug(r); @@ -29,6 +33,14 @@ int bus_map_strv_sort(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus return 0; } +int bus_map_job_id(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *error, void *userdata) { + uint32_t *p = ASSERT_PTR(userdata); + + assert(m); + + return sd_bus_message_read(m, "(uo)", p, /* path = */ NULL); +} + static int map_basic(sd_bus_message *m, unsigned flags, void *userdata) { char type; int r; |