watchdog: make watchdog dbus properties writable
This commit is contained in:
@@ -660,6 +660,16 @@ int bus_property_append_long(DBusMessageIter *i, const char *property, void *dat
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bus_property_set_uint64(DBusMessageIter *i, const char *property, void *data) {
|
||||
uint64_t *t = data;
|
||||
|
||||
assert(i);
|
||||
assert(property);
|
||||
|
||||
dbus_message_iter_get_basic(i, t);
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *bus_errno_to_dbus(int error) {
|
||||
|
||||
switch(error) {
|
||||
|
||||
@@ -144,6 +144,9 @@ int bus_property_append_long(DBusMessageIter *i, const char *property, void *dat
|
||||
#define bus_property_append_unsigned bus_property_append_uint32
|
||||
#define bus_property_append_usec bus_property_append_uint64
|
||||
|
||||
int bus_property_set_uint64(DBusMessageIter *i, const char *property, void *data);
|
||||
#define bus_property_set_usec bus_property_set_uint64
|
||||
|
||||
#define DEFINE_BUS_PROPERTY_APPEND_ENUM(function,name,type) \
|
||||
int function(DBusMessageIter *i, const char *property, void *data) { \
|
||||
const char *value; \
|
||||
|
||||
Reference in New Issue
Block a user