diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-02-03 03:10:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-03 05:06:03 +0100 |
commit | 9d2f51788e17355cdc287cc6d23169bef363d72e (patch) | |
tree | 8a8e6a44323aaf54881cf28cf7f2599fdec6bbff /src/dbus-mount.c | |
parent | cfc4eb4cbaa3434fac145cbabbd51c5f41bd20a6 (diff) |
mount: replace failure boolean by enum
Diffstat (limited to 'src/dbus-mount.c')
-rw-r--r-- | src/dbus-mount.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dbus-mount.c b/src/dbus-mount.c index 17d29d6e48..35d6ea7a1d 100644 --- a/src/dbus-mount.c +++ b/src/dbus-mount.c @@ -39,6 +39,7 @@ BUS_EXEC_CONTEXT_INTERFACE \ " <property name=\"ControlPID\" type=\"u\" access=\"read\"/>\n" \ " <property name=\"DirectoryMode\" type=\"u\" access=\"read\"/>\n" \ + " <property name=\"Result\" type=\"s\" access=\"read\"/>\n" \ " </interface>\n" #define INTROSPECTION \ @@ -64,7 +65,8 @@ const char bus_mount_invalidating_properties[] = "ExecMount\0" "ExecUnmount\0" "ExecRemount\0" - "ControlPID\0"; + "ControlPID\0" + "Result\0"; static int bus_mount_append_what(DBusMessageIter *i, const char *property, void *data) { Mount *m = data; @@ -135,6 +137,8 @@ static int bus_mount_append_type(DBusMessageIter *i, const char *property, void return 0; } +static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_mount_append_mount_result, mount_result, MountResult); + static const BusProperty bus_mount_properties[] = { { "Where", bus_property_append_string, "s", offsetof(Mount, where), true }, { "What", bus_mount_append_what, "s", 0 }, @@ -146,6 +150,7 @@ static const BusProperty bus_mount_properties[] = { BUS_EXEC_COMMAND_PROPERTY("ExecRemount", offsetof(Mount, exec_command[MOUNT_EXEC_REMOUNT]), false), { "ControlPID", bus_property_append_pid, "u", offsetof(Mount, control_pid) }, { "DirectoryMode", bus_property_append_mode, "u", offsetof(Mount, directory_mode) }, + { "Result", bus_mount_append_mount_result, "s", offsetof(Mount, result) }, { NULL, } }; |