diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-02-03 02:31:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-03 05:06:03 +0100 |
commit | cfc4eb4cbaa3434fac145cbabbd51c5f41bd20a6 (patch) | |
tree | 70c30a0e0a83e41133c441fd4bdc09c2b6a61a11 /src/dbus-socket.c | |
parent | f42806df7de0f4669c1296ab66a7f8d8784dd0f2 (diff) |
socket: replace failure boolean by enum
Diffstat (limited to 'src/dbus-socket.c')
-rw-r--r-- | src/dbus-socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-socket.c b/src/dbus-socket.c index 995b6725c9..9fef6769f0 100644 --- a/src/dbus-socket.c +++ b/src/dbus-socket.c @@ -58,6 +58,7 @@ " <property name=\"NConnections\" type=\"u\" access=\"read\"/>\n" \ " <property name=\"MessageQueueMaxMessages\" type=\"x\" access=\"read\"/>\n" \ " <property name=\"MessageQueueMessageSize\" type=\"x\" access=\"read\"/>\n" \ + " <property name=\"Result\" type=\"s\" access=\"read\"/>\n" \ " </interface>\n" \ #define INTROSPECTION \ @@ -83,9 +84,11 @@ const char bus_socket_invalidating_properties[] = "ExecStopPost\0" "ControlPID\0" "NAccepted\0" - "NConnections\0"; + "NConnections\0" + "Result\0"; static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_socket_append_bind_ipv6_only, socket_address_bind_ipv6_only, SocketAddressBindIPv6Only); +static DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_socket_append_socket_result, socket_result, SocketResult); static const BusProperty bus_socket_properties[] = { { "BindIPv6Only", bus_socket_append_bind_ipv6_only, "s", offsetof(Socket, bind_ipv6_only) }, @@ -117,6 +120,7 @@ static const BusProperty bus_socket_properties[] = { { "NAccepted", bus_property_append_unsigned, "u", offsetof(Socket, n_accepted) }, { "MessageQueueMaxMessages", bus_property_append_long, "x", offsetof(Socket, mq_maxmsg) }, { "MessageQueueMessageSize", bus_property_append_long, "x", offsetof(Socket, mq_msgsize) }, + { "Result", bus_socket_append_socket_result, "s", offsetof(Socket, result) }, { NULL, } }; |