summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-23 02:59:03 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-23 04:20:55 +0100
commita7639e37afd6afeb7b83b11e75894faa06694ba6 (patch)
tree9f96b66f2ee1501ccdd3f9aa9d50146b713da1d1 /src/libsystemd-bus/bus-message.c
parent508c6f95cbcf1afd234eb9220554fc13f9698fa5 (diff)
bus-proxyd: synthesize NameAcquire/NameLost signals for socket clients
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r--src/libsystemd-bus/bus-message.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index b0f4b16d41..39a85d58f7 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -5524,3 +5524,13 @@ int bus_message_remarshal(sd_bus *bus, sd_bus_message **m) {
return 0;
}
+
+int bus_message_append_sender(sd_bus_message *m, const char *sender) {
+ assert(m);
+ assert(sender);
+
+ assert_return(!m->sealed, -EPERM);
+ assert_return(!m->sender, -EPERM);
+
+ return message_append_field_string(m, BUS_MESSAGE_HEADER_SENDER, SD_BUS_TYPE_STRING, sender, &m->sender);
+}