diff options
author | Kay Sievers <kay@vrfy.org> | 2013-11-18 01:30:57 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-11-18 01:30:57 +0100 |
commit | f21326e604fd252600f3b99c277b30981477e4b1 (patch) | |
tree | e75f9510855faff22364f45ca104a9ba035055c3 /src/libsystemd-bus/sd-bus.c | |
parent | f0511bd7e3d591383485a36ddcb764abe74b1939 (diff) |
bus: TIMESTAMP is optional kdbus metadata now, NAMES are always added
Diffstat (limited to 'src/libsystemd-bus/sd-bus.c')
-rw-r--r-- | src/libsystemd-bus/sd-bus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index 2345c734c3..d93138bb15 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -264,21 +264,21 @@ _public_ int sd_bus_negotiate_fds(sd_bus *bus, int b) { return 0; } -_public_ int sd_bus_negotiate_attach_creds(sd_bus *bus, int b) { +_public_ int sd_bus_negotiate_attach_timestamp(sd_bus *bus, int b) { assert_return(bus, -EINVAL); assert_return(bus->state == BUS_UNSET, -EPERM); assert_return(!bus_pid_changed(bus), -ECHILD); - SET_FLAG(bus->hello_flags, KDBUS_HELLO_ATTACH_CREDS, b); + SET_FLAG(bus->hello_flags, KDBUS_HELLO_ATTACH_TIMESTAMP, b); return 0; } -_public_ int sd_bus_negotiate_attach_names(sd_bus *bus, int b) { +_public_ int sd_bus_negotiate_attach_creds(sd_bus *bus, int b) { assert_return(bus, -EINVAL); assert_return(bus->state == BUS_UNSET, -EPERM); assert_return(!bus_pid_changed(bus), -ECHILD); - SET_FLAG(bus->hello_flags, KDBUS_HELLO_ATTACH_NAMES, b); + SET_FLAG(bus->hello_flags, KDBUS_HELLO_ATTACH_CREDS, b); return 0; } |