[systemd-devel] [PATCHv2] bus-driverd: Fix return code in driver_request_name

Lennart Poettering lennart at poettering.net
Tue Dec 17 08:16:44 PST 2013


On Tue, 17.12.13 15:54, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> 
> On Tue, Dec 17, 2013 at 02:31:42PM +0100, Lukasz Skalski wrote:
> > RequestName return codes should be consistent with Dbus Specification.
> > 
> > VALUE - DESCRIPTION
> > 1-The caller is now the primary owner of the name, replacing any previous owner,
> > 2-The name already had an owner (QUEUE flag was not specified),
> > 3-The name already has an owner (QUEUE flag was specified),
> > 4-Application trying to request ownership of a name is already the owner of it.
> Please turn this into an enum.

We already have an enum for that, defined in bus-protocol.h

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list