summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-control.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-03 18:13:48 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-03 18:14:50 +0100
commit0461f8cdc1d7b4afee2f2ff40fcaa3c7e26c662c (patch)
tree86005fcf71c45208e919676235d80905d3d12f26 /src/libsystemd-bus/bus-control.c
parent6c045c0b4c49c88a1d3b9360c05efa5084796d2d (diff)
bus: internalize a lot of protocol definitions
We shouldn export what isn't necessary or useful to clients, so let's add the protocol definitions we only need internally into a private header.
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r--src/libsystemd-bus/bus-control.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index de5c20e3f8..ed10f5a683 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -104,11 +104,11 @@ static int bus_request_name_dbus1(sd_bus *bus, const char *name, unsigned flags)
if (r < 0)
return r;
- if (ret == SD_BUS_NAME_ALREADY_OWNER)
+ if (ret == BUS_NAME_ALREADY_OWNER)
return -EALREADY;
- else if (ret == SD_BUS_NAME_EXISTS)
+ else if (ret == BUS_NAME_EXISTS)
return -EEXIST;
- else if (ret == SD_BUS_NAME_IN_QUEUE)
+ else if (ret == BUS_NAME_IN_QUEUE)
return 0;
else
return -EIO;
@@ -177,11 +177,11 @@ static int bus_release_name_dbus1(sd_bus *bus, const char *name) {
r = sd_bus_message_read(reply, "u", &ret);
if (r < 0)
return r;
- if (ret == SD_BUS_NAME_NON_EXISTENT)
+ if (ret == BUS_NAME_NON_EXISTENT)
return -ENOENT;
- if (ret == SD_BUS_NAME_NOT_OWNER)
+ if (ret == BUS_NAME_NOT_OWNER)
return -EADDRNOTAVAIL;
- if (ret == SD_BUS_NAME_RELEASED)
+ if (ret == BUS_NAME_RELEASED)
return 0;
return -EINVAL;