From 29a07cdb4a317f2e1ea160b79bfe6eb1be2e6e01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 05:55:58 +0100 Subject: bus: instead of exposing the dbus1 flags when acquiring a name use our own that are closer to kdbus This turns around DO_NOT_QUEUE into QUEUE which implies a more useful default. (And negative options are awful anyway.) --- src/libsystemd-bus/bus-protocol.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libsystemd-bus/bus-protocol.h') diff --git a/src/libsystemd-bus/bus-protocol.h b/src/libsystemd-bus/bus-protocol.h index 982461bd9d..4726d9345d 100644 --- a/src/libsystemd-bus/bus-protocol.h +++ b/src/libsystemd-bus/bus-protocol.h @@ -60,6 +60,14 @@ enum { _BUS_MESSAGE_HEADER_MAX }; +/* RequestName parameters */ + +enum { + BUS_NAME_ALLOW_REPLACEMENT = 1, + BUS_NAME_REPLACE_EXISTING = 2, + BUS_NAME_DO_NOT_QUEUE = 4 +}; + /* RequestName returns */ enum { BUS_NAME_PRIMARY_OWNER = 1, -- cgit v1.2.3-54-g00ecf