chiark / gitweb /
bus: replace sd_bus_label_{escape,unescape}() by new sd_bus_path_{encode,decode}()
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 18:03:50 +0000 (19:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 18:03:50 +0000 (19:03 +0100)
commita6278b88305b237b02eabff0d870b57fe851822d
treed826e248d401a18f07c45cfc0832907e861a2877
parent2be56ff1e49c8954a0899da701233acf053e95a4
bus: replace sd_bus_label_{escape,unescape}() by new sd_bus_path_{encode,decode}()

The new calls work similarly, but enforce a that a common, fixed bus
path prefix is used.

This follows discussions with Simon McVittie on IRC that it should be a
good idea to make sure that people don't use the escaping applied here
too wildly as anything other than the last label of a bus path.
13 files changed:
Makefile-man.am
man/sd_bus_label_escape.xml [deleted file]
man/sd_bus_path_encode.xml [new file with mode: 0644]
src/libsystemd/libsystemd.sym.m4
src/libsystemd/sd-bus/bus-creds.c
src/libsystemd/sd-bus/bus-kernel.c
src/libsystemd/sd-bus/sd-bus.c
src/libsystemd/sd-bus/sd-memfd.c
src/libsystemd/sd-bus/test-bus-marshal.c
src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/machine/machine-dbus.c
src/systemd/sd-bus.h