chiark / gitweb /
6 years agoshell-completion: busctl
Zbigniew Jędrzejewski-Szmek [Fri, 6 Dec 2013 02:33:08 +0000 (21:33 -0500)]
shell-completion: busctl

6 years agobus: update kdbus.h
Kay Sievers [Fri, 6 Dec 2013 00:30:59 +0000 (01:30 +0100)]
bus: update kdbus.h

6 years agosystemd: add a start job for all units in SYSTEMD_[USER_]WANTS=
Zbigniew Jędrzejewski-Szmek [Thu, 5 Dec 2013 05:41:12 +0000 (00:41 -0500)]
systemd: add a start job for all units in SYSTEMD_[USER_]WANTS=

6 years agoexecute.h: remove redefinition of Unit
Thomas Hindoe Paaboel Andersen [Thu, 5 Dec 2013 21:34:01 +0000 (22:34 +0100)]
execute.h: remove redefinition of Unit

Unit is typedef'ed in both unit.h and execute.h. The typedef
existed first in unit.h and was later added to execute.h in

It is no longer needed so let's just keep the one in unit.h to
avoid redefining it.

6 years agotest-bus-gvariant: remove unused variable
Thomas Hindoe Paaboel Andersen [Thu, 5 Dec 2013 21:33:22 +0000 (22:33 +0100)]
test-bus-gvariant: remove unused variable

6 years agobus: start maintaining a list of difference between kdbus/dbus1
Lennart Poettering [Thu, 5 Dec 2013 02:16:15 +0000 (03:16 +0100)]
bus: start maintaining a list of difference between kdbus/dbus1

6 years agobus: add missing LE meta data enforcement for gvariant serializer
Lennart Poettering [Thu, 5 Dec 2013 02:09:09 +0000 (03:09 +0100)]
bus: add missing LE meta data enforcement for gvariant serializer

6 years agobusname: improve condition check
Lennart Poettering [Thu, 5 Dec 2013 01:48:17 +0000 (02:48 +0100)]
busname: improve condition check

6 years agobus: add support for serializing to gvariant
Lennart Poettering [Thu, 5 Dec 2013 01:46:54 +0000 (02:46 +0100)]
bus: add support for serializing to gvariant

(deserialization is still missing, hence this is not hooked up to kdbus)

6 years agobus: switch to multiple KDBUS_ITEM_NAME including the flags
Kay Sievers [Wed, 4 Dec 2013 22:36:02 +0000 (23:36 +0100)]
bus: switch to multiple KDBUS_ITEM_NAME including the flags

6 years agoman.systemd-cgls: Fix an option typo
Alex Jia [Wed, 4 Dec 2013 07:57:50 +0000 (15:57 +0800)]
man.systemd-cgls: Fix an option typo

The option 'M' is inconsistent between help document and man page.

6 years agoREADME: remove obsolete paragraph about D-Bus
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 22:00:05 +0000 (23:00 +0100)]
README: remove obsolete paragraph about D-Bus

6 years agosystemctl: make an always true assert static
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 19:51:03 +0000 (20:51 +0100)]
systemctl: make an always true assert static

Silences a warning i clang

6 years agosystemctl: no need to fdopen stdout
Thomas Hindoe Paaboel Andersen [Wed, 4 Dec 2013 19:01:07 +0000 (20:01 +0100)]
systemctl: no need to fdopen stdout

6 years agolibsystemd-bus: catch up with latest kdbus changes
Kay Sievers [Wed, 4 Dec 2013 18:06:52 +0000 (19:06 +0100)]
libsystemd-bus: catch up with latest kdbus changes

6 years agoFix typo: SetChasis -> SetChassis
David Coppa [Wed, 4 Dec 2013 11:59:40 +0000 (12:59 +0100)]
Fix typo: SetChasis -> SetChassis

6 years agoTODO: add networkd entries
Tom Gundersen [Wed, 4 Dec 2013 12:14:23 +0000 (13:14 +0100)]
TODO: add networkd entries

6 years agonetworkd: add link-sense and simplify state-machine a bit
Tom Gundersen [Tue, 3 Dec 2013 17:48:20 +0000 (18:48 +0100)]
networkd: add link-sense and simplify state-machine a bit

This listens to rtnetlink for changes to IFF_UP and IFF_LOWER_UP (link sense). The latter
is simply logged at the moment, but will be useful once we add dhcp support.

6 years agortnl: add link_get_flags
Tom Gundersen [Tue, 3 Dec 2013 23:34:58 +0000 (00:34 +0100)]
rtnl: add link_get_flags

6 years agortnl: add callback support
Tom Gundersen [Sat, 30 Nov 2013 00:24:29 +0000 (01:24 +0100)]
rtnl: add callback support

sd_rtnl_add_match allows you to add a callback function for when given types of
messages are received.

6 years agortnl: don't ignore broadcast messages
Tom Gundersen [Tue, 3 Dec 2013 22:55:45 +0000 (23:55 +0100)]
rtnl: don't ignore broadcast messages

6 years agolibsystemd-bus: catch up with latest kdbus list query changes
Kay Sievers [Wed, 4 Dec 2013 10:47:22 +0000 (11:47 +0100)]
libsystemd-bus: catch up with latest kdbus list query changes

6 years agotrivial coding style clean ups
Thomas Hindoe Paaboel Andersen [Tue, 3 Dec 2013 21:27:45 +0000 (22:27 +0100)]
trivial coding style clean ups

- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for  udev)

Try to use this:
    void foo() {
instead of this:
    void foo()

6 years agosd-memfd: use assert_return
Thomas Hindoe Paaboel Andersen [Tue, 3 Dec 2013 20:58:51 +0000 (21:58 +0100)]
sd-memfd: use assert_return

6 years agobus: fix parsing of AcquireName() response
Lennart Poettering [Tue, 3 Dec 2013 19:31:34 +0000 (20:31 +0100)]
bus: fix parsing of AcquireName() response

6 years agobus: don't make use of the private bus socket if kdbus is available
Lennart Poettering [Tue, 3 Dec 2013 18:55:51 +0000 (19:55 +0100)]
bus: don't make use of the private bus socket if kdbus is available

6 years agocore: use normal library call to query list of current names
Lennart Poettering [Tue, 3 Dec 2013 17:58:18 +0000 (18:58 +0100)]
core: use normal library call to query list of current names

6 years agobus: rework sd_bus_list_names() to return two lists for acquired and activatable...
Lennart Poettering [Tue, 3 Dec 2013 17:42:51 +0000 (18:42 +0100)]
bus: rework sd_bus_list_names() to return two lists for acquired and activatable names

6 years agobus: internalize a lot of protocol definitions
Lennart Poettering [Tue, 3 Dec 2013 17:13:48 +0000 (18:13 +0100)]
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

6 years agojournal: fail silently in sd_j_sendv() if journal is unavailable
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 13:07:32 +0000 (08:07 -0500)]
journal: fail silently in sd_j_sendv() if journal is unavailable

"syslog(3) and sd_journal_print() may largely be used interchangeably
functionality-wise" according to sd_journal_print(3). This socket
should be always available except in rare circumstatances, and we
don't random applications to fail on logging, so let's do what syslog
did. The alternative of forcing all callers to do error handling for
this rare case doesn't really have any benefits, since if they can't
log there isn't much they can do anyway.

6 years agobus: make sd_bus_request_name() and sd_bus_release_name() behave more like other...
Lennart Poettering [Tue, 3 Dec 2013 17:01:26 +0000 (18:01 +0100)]
bus: make sd_bus_request_name() and sd_bus_release_name() behave more like other calls

Instead of returning an enum of return codes, make them return error
codes like kdbus does internally.

Also, document this behaviour so that clients can stick to it.

(Also rework bus-control.c to always have to functions for dbus1 vs.
kernel implementation of the various calls.)

6 years agomacro: better make IN_SET() macro use const arrays
Lennart Poettering [Tue, 3 Dec 2013 15:41:06 +0000 (16:41 +0100)]
macro: better make IN_SET() macro use const arrays

6 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Tue, 3 Dec 2013 13:38:53 +0000 (14:38 +0100)]
libsystemd-bus: catch up with latest kdbus changes

6 years agounits: ship busname units for the bus activated services we ship
Lennart Poettering [Tue, 3 Dec 2013 03:27:03 +0000 (04:27 +0100)]
units: ship busname units for the bus activated services we ship

6 years agocatalog: rename files to specify language in the filename
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 01:29:10 +0000 (20:29 -0500)]
catalog: rename files to specify language in the filename

6 years agocatalog: determine language from the filename
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 02:35:31 +0000 (21:35 -0500)]
catalog: determine language from the filename

6 years agosystemd: treat reload failure as failure
Zbigniew Jędrzejewski-Szmek [Tue, 3 Dec 2013 02:52:51 +0000 (21:52 -0500)]
systemd: treat reload failure as failure

systemctl reload "suceeded" on stopped units, but it is documented
to fail in this case.

6 years agodbus1: make gcc shut up
Lennart Poettering [Tue, 3 Dec 2013 01:07:24 +0000 (02:07 +0100)]
dbus1: make gcc shut up

6 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Tue, 3 Dec 2013 00:56:13 +0000 (01:56 +0100)]
libsystemd-bus: catch up with latest kdbus changes

6 years agounits: create for user sessions too
Lennart Poettering [Tue, 3 Dec 2013 00:44:24 +0000 (01:44 +0100)]
units: create for user sessions too

6 years agodbus1: hook into normal boot if kdbus is enabled
Lennart Poettering [Tue, 3 Dec 2013 00:41:02 +0000 (01:41 +0100)]
dbus1: hook into normal boot if kdbus is enabled

6 years agobus: skip unit file generation for systemd itself
Lennart Poettering [Tue, 3 Dec 2013 00:24:39 +0000 (01:24 +0100)]
bus: skip unit file generation for systemd itself

6 years agounits: install by default
Lennart Poettering [Tue, 3 Dec 2013 00:18:26 +0000 (01:18 +0100)]
units: install by default

6 years agobus: add generator that turns old dbus1 activation files into .busname + .service...
Lennart Poettering [Tue, 3 Dec 2013 00:13:03 +0000 (01:13 +0100)]
bus: add generator that turns old dbus1 activation files into .busname + .service units

6 years agobus: add .busname unit type to implement kdbus-style bus activation
Lennart Poettering [Mon, 2 Dec 2013 22:30:19 +0000 (23:30 +0100)]
bus: add .busname unit type to implement kdbus-style bus activation

6 years agobus: make sure we check for "incompatible" flags negotiated with kernel kdbus
Lennart Poettering [Mon, 2 Dec 2013 22:31:41 +0000 (23:31 +0100)]
bus: make sure we check for "incompatible" flags negotiated with kernel kdbus

6 years agocore: extra paranoia when deserializing kdbus fd
Lennart Poettering [Mon, 2 Dec 2013 22:10:28 +0000 (23:10 +0100)]
core: extra paranoia when deserializing kdbus fd

6 years agomacro: add a macro to test whether a value is in a specified list
Lennart Poettering [Mon, 2 Dec 2013 22:08:25 +0000 (23:08 +0100)]
macro: add a macro to test whether a value is in a specified list

Introduce IN_SET() macro to nicely check whether a value a is one of a
few listed values.

This makes writing this:

        if (a == 1 || a == 7 || a == 8 || a == 9)

nicer, by allowing this:

        if (IN_SET(a, 1, 7, 8, 9))

This is particularly useful for state machine enums.

6 years agoUse assert_return in more of the public API
Thomas Hindoe Paaboel Andersen [Mon, 2 Dec 2013 21:42:01 +0000 (22:42 +0100)]
Use assert_return in more of the public API

6 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Mon, 2 Dec 2013 19:29:58 +0000 (20:29 +0100)]
libsystemd-bus: catch up with latest kdbus changes

6 years agonspawn: make sure /dev/kdbus in the container is world accessible
Lennart Poettering [Mon, 2 Dec 2013 18:59:15 +0000 (19:59 +0100)]
nspawn: make sure /dev/kdbus in the container is world accessible

6 years agonspawn: make kdbus namespaces actually work
Lennart Poettering [Mon, 2 Dec 2013 17:47:39 +0000 (18:47 +0100)]
nspawn: make kdbus namespaces actually work

6 years agobusctl: add command to dump creds of a peer or pid
Lennart Poettering [Mon, 2 Dec 2013 17:40:19 +0000 (18:40 +0100)]
busctl: add command to dump creds of a peer or pid

(also, rename _SD_BUS_CREDS_MAX to _SD_BUX_CRED_ALL, since "MAX" so far
was used to indicate one higher than the highest valid value, and this
is not correct here.)

6 years agoDisplay synthetic message serial number in a more readable format than (uint32_t) -1
Lukasz Skalski [Mon, 2 Dec 2013 15:31:46 +0000 (16:31 +0100)]
Display synthetic message serial number in a more readable format than (uint32_t) -1

Serial=4294967295 field in message dump generated by bus_message_dump()
function for synthetic messages isn't good readable.

6 years agobus: be nice to LLVM and don't embedd a VLA in a union
Lennart Poettering [Mon, 2 Dec 2013 16:17:29 +0000 (17:17 +0100)]
bus: be nice to LLVM and don't embedd a VLA in a union

6 years agobus: when replying to an incoming message and the vtable contains the expected return...
Lennart Poettering [Mon, 2 Dec 2013 14:28:20 +0000 (15:28 +0100)]
bus: when replying to an incoming message and the vtable contains the expected return signature generate an error if the response message doesn't match it

6 years agoservice: remove unneccesary Socket.got_socket_fd
Shawn Landden [Wed, 20 Nov 2013 08:35:04 +0000 (00:35 -0800)]
service: remove unneccesary Socket.got_socket_fd

6 years agobuild-sys: allow building systemctl with --disable-logind
Marcel Holtmann [Sun, 1 Dec 2013 20:28:32 +0000 (12:28 -0800)]
build-sys: allow building systemctl with --disable-logind

When logind is disabled, do not attempt to link against the non-existing library.

6 years agobus: bus_open_user_systemd() fall back to bus if runtime dir is not set
Kay Sievers [Sun, 1 Dec 2013 17:17:21 +0000 (18:17 +0100)]
bus: bus_open_user_systemd() fall back to bus if runtime dir is not set

6 years agocatalog,po: add Italian translation
Daniele Medri [Thu, 28 Nov 2013 17:58:55 +0000 (18:58 +0100)]
catalog,po: add Italian translation

6 years agoutil: add greedy_realloc0()
David Herrmann [Sat, 30 Nov 2013 10:31:59 +0000 (11:31 +0100)]
util: add greedy_realloc0()

Compared to greedy_realloc(), this sets all newly allocated memory to 0.
As the old variant has been used a lot for string-handling, we avoid
changing it as clearing memory is not needed there.

6 years agologind: fix "CanGraphical" attribute to return correct value
David Herrmann [Sat, 30 Nov 2013 10:37:32 +0000 (11:37 +0100)]
logind: fix "CanGraphical" attribute to return correct value

We should return seat_can_graphical() instead of seat_can_tty() for the
public dbus CanGraphical attribute. This used to work, but the
dbus -> sd-bus conversion introduced this regression.

6 years agofix regression of read_full_file() in fileio.c
Shawn Landden [Sun, 1 Dec 2013 04:02:27 +0000 (20:02 -0800)]
fix regression of read_full_file() in fileio.c

my e93c33d4aa broke this stupidly

6 years agoshell-completion: systemctl cat
Zbigniew Jędrzejewski-Szmek [Sun, 1 Dec 2013 03:31:31 +0000 (22:31 -0500)]
shell-completion: systemctl cat

Also update -H help string to follow the binaries.

6 years agosystemctl: do not show SourcePath when FragmentPath cannot be found
Zbigniew Jędrzejewski-Szmek [Sun, 1 Dec 2013 03:29:33 +0000 (22:29 -0500)]
systemctl: do not show SourcePath when FragmentPath cannot be found

Those files can be in a completely deferent format and also
arbitrarily long, and usually contain information about other
stuff. If we ever add SourceLine= or SourceLines= in addition
to SourcePath=, and can show the relevant information only, this
commit can be reverted.

6 years agosystemctl: add "systemctl cat"
Shawn Landden [Sun, 1 Dec 2013 00:09:26 +0000 (16:09 -0800)]
systemctl: add "systemctl cat"

6 years agosystemctl: refactor show()
Shawn Landden [Sun, 24 Nov 2013 03:52:52 +0000 (19:52 -0800)]
systemctl: refactor show()

v2, don't leave in unused function

6 years agoman: explicitly say when multiple units can be specified
Zbigniew Jędrzejewski-Szmek [Sun, 1 Dec 2013 02:23:01 +0000 (21:23 -0500)]
man: explicitly say when multiple units can be specified

itistoday> how do you specify multiple dependencies in a unit file? i've been
           googling and can't find this basic thing :-\
itistoday> do you use a comma, or use multiple After= statements?

6 years agodocs: remove unneeded the's in gudev docs
Zbigniew Jędrzejewski-Szmek [Sun, 1 Dec 2013 01:27:54 +0000 (20:27 -0500)]
docs: remove unneeded the's in gudev docs

6 years agobus: remove unused variable
Zbigniew Jędrzejewski-Szmek [Sun, 1 Dec 2013 01:10:18 +0000 (20:10 -0500)]
bus: remove unused variable

6 years agobus: remove unused variable
Thomas Hindoe Paaboel Andersen [Sat, 30 Nov 2013 23:26:08 +0000 (00:26 +0100)]
bus: remove unused variable

6 years agoutil.c: check if return value from ttyname_r is > 0 instead of != 0
Thomas Hindoe Paaboel Andersen [Sat, 30 Nov 2013 22:45:31 +0000 (23:45 +0100)]
util.c: check if return value from ttyname_r is > 0 instead of != 0

We must return a negative error code from getttyname_malloc but
that would not be the case if ttyname_r returned a negative value.

ttyname_r should only return EBADF, ENOTTY, or ERANGE so it should
be safe to change.

6 years agosysfs-show.c: return negative error
Thomas Hindoe Paaboel Andersen [Sat, 30 Nov 2013 20:59:40 +0000 (21:59 +0100)]
sysfs-show.c: return negative error

introduced in 1ca208fb4f93e5869704af1812cbff7130a2fc03

6 years agomacro.h: fix typo in comment
Thomas Hindoe Paaboel Andersen [Sat, 30 Nov 2013 20:55:35 +0000 (21:55 +0100)]
macro.h: fix typo in comment

6 years agobus: catch up with kdbus
Kay Sievers [Sat, 30 Nov 2013 19:41:02 +0000 (20:41 +0100)]
bus: catch up with kdbus

6 years agobus: do kdbus only if this is enabled on the configure switch
Lennart Poettering [Sat, 30 Nov 2013 19:18:48 +0000 (20:18 +0100)]
bus: do kdbus only if this is enabled on the configure switch

Since we want to retain the ability to break kernel ←→ userspace ABI
after the next release, let's not make use by default of kdbus, so that
people with future kernels will not suddenly break with current systemd

kdbus support is left in all builds but must now be explicitly requested
at runtime (for example via setting $DBUS_SESSION_BUS). Via a configure
switch the old behaviour can be restored. In fact, we change
to do this, so that git builds (which run get kdbus by
default, but tarball builds (which ue the configure defaults) do not get
it, and hence this stays out of the distros by default.

6 years agoupdate TODO
Lennart Poettering [Sat, 30 Nov 2013 18:55:23 +0000 (19:55 +0100)]
update TODO

6 years agobus: use "System.Error." as prefix for implicit errno bus errors
Lennart Poettering [Sat, 30 Nov 2013 18:53:33 +0000 (19:53 +0100)]
bus: use "System.Error." as prefix for implicit errno bus errors

We probably shouldn't use "Posix.Error" since many of the errors have
nothing to do with Posix.

6 years agobus: support temporarily const errors that don't need to be freed but require deep...
Lennart Poettering [Sat, 30 Nov 2013 18:45:32 +0000 (19:45 +0100)]
bus: support temporarily const errors that don't need to be freed but require deep copies

This should fix issues with incorrectly copying bus error messages out
of sd_bus_message objects.

Original bug found by: Djalal Harouni

6 years agolibsystemd-bus: sync kdbus.h
Daniel Mack [Sat, 30 Nov 2013 18:23:16 +0000 (19:23 +0100)]
libsystemd-bus: sync kdbus.h

6 years agonspawn: set up a kdbus namespace when starting a container
Lennart Poettering [Sat, 30 Nov 2013 15:36:46 +0000 (16:36 +0100)]
nspawn: set up a kdbus namespace when starting a container

6 years agobus: append unique and well known names to all messages unconditionally
Lennart Poettering [Sat, 30 Nov 2013 15:08:11 +0000 (16:08 +0100)]
bus: append unique and well known names to all messages unconditionally

6 years agobus: include unique and well known names in credentials object
Lennart Poettering [Sat, 30 Nov 2013 03:14:10 +0000 (04:14 +0100)]
bus: include unique and well known names in credentials object

6 years agobus: update kdbus.h
Kay Sievers [Sat, 30 Nov 2013 13:14:39 +0000 (14:14 +0100)]
bus: update kdbus.h

6 years agolibsystemd-bus: catch up with latest kdbus changes
Daniel Mack [Sat, 30 Nov 2013 12:31:04 +0000 (13:31 +0100)]
libsystemd-bus: catch up with latest kdbus changes

The name list and query functions now work differently in kdbus, as the
result is stored in the connection's pool, rather than being copied back
through the ioctl buffer. That also safes us some logic, as we don't
have to resize the communication buffer in a loop with growing buffer

Due to this, KDBUS_CMD_MSG_RELEASE was renamed to KDBUS_CMD_FREE, as it
is now used outside the message logic as well.

6 years agobus-proxyd: Fix CLI help. --bus-path is also usable as -p.
David Strauss [Sat, 30 Nov 2013 06:55:30 +0000 (16:55 +1000)]
bus-proxyd: Fix CLI help. --bus-path is also usable as -p.

6 years agocore: allocate a kdbus bus for each systemd instance, if we can
Lennart Poettering [Sat, 30 Nov 2013 02:53:42 +0000 (03:53 +0100)]
core: allocate a kdbus bus for each systemd instance, if we can

6 years agobus: whenever we notice the connection is terminated enter CLOSING state
Lennart Poettering [Sat, 30 Nov 2013 00:49:40 +0000 (01:49 +0100)]
bus: whenever we notice the connection is terminated enter CLOSING state

6 years agobus: synthesize local error reply when we cannot deliver a message to kdbus because...
Lennart Poettering [Sat, 30 Nov 2013 00:02:51 +0000 (01:02 +0100)]
bus: synthesize local error reply when we cannot deliver a message to kdbus because the destination is unavailable

6 years agobus: don't generate NameAcquired/NameLost messages in the library
Lennart Poettering [Fri, 29 Nov 2013 23:19:01 +0000 (00:19 +0100)]
bus: don't generate NameAcquired/NameLost messages in the library

The signals appear entirely redundant due to NameOwnerChange, hence
don't do them in the new library, instead leave them for the
compatibility bridge only.

Also, set the serial number for synthesized messages to (uint32_t) -1.

6 years agobuild-sys: no longer rebuild various bits and pieces such as man pages each time...
Lennart Poettering [Fri, 29 Nov 2013 23:16:49 +0000 (00:16 +0100)]
build-sys: no longer rebuild various bits and pieces such as man pages each time the Makefile changes

We don't do this for .c files either, even they are also influence quite
a bit by makefile settings. Given that XSLT is a lot slower then the
rest of the build let's make our build a bit faster if people end up
touching the Makefile.

6 years agobus: revert attempts to make the integration-testing work
Kay Sievers [Fri, 29 Nov 2013 22:55:09 +0000 (23:55 +0100)]
bus: revert attempts to make the integration-testing work


6 years agorename stdio-bridge to bus-proxyd
Kay Sievers [Fri, 29 Nov 2013 20:54:44 +0000 (21:54 +0100)]
rename stdio-bridge to bus-proxyd

6 years agobus: synthesize NameLost/NameAcquired from kernel messages on top if NameOwnerChange
Lennart Poettering [Fri, 29 Nov 2013 21:02:43 +0000 (22:02 +0100)]
bus: synthesize NameLost/NameAcquired from kernel messages on top if NameOwnerChange

6 years agobus: fix callback index when dispatching kernel messages
Lennart Poettering [Fri, 29 Nov 2013 21:02:14 +0000 (22:02 +0100)]
bus: fix callback index when dispatching kernel messages

6 years agobus: add the ability for backends to queue to input messages at the same time
Lennart Poettering [Fri, 29 Nov 2013 20:29:16 +0000 (21:29 +0100)]
bus: add the ability for backends to queue to input messages at the same time

We need this so that one incoming kernel message can result in two
high-level bus messages, for the case where we synthesize NameAcquired
and NameOwnerChanged in the same instance.

6 years agolibsystemd-bus: sd_bus_request_name: use kdbus_translate_request_name_flags()
Daniel Mack [Fri, 29 Nov 2013 20:58:39 +0000 (21:58 +0100)]
libsystemd-bus: sd_bus_request_name: use kdbus_translate_request_name_flags()

6 years agolibsystemd-bus: rename sd_bus_kernel_translate_request_name_flags
Daniel Mack [Fri, 29 Nov 2013 20:14:07 +0000 (21:14 +0100)]
libsystemd-bus: rename sd_bus_kernel_translate_request_name_flags

... to keep the namespace clean.

6 years agolibsystemd-bus: add kdbus support for sd_bus_get_owner()
Daniel Mack [Fri, 29 Nov 2013 19:44:10 +0000 (20:44 +0100)]
libsystemd-bus: add kdbus support for sd_bus_get_owner()

6 years agolibsystemd-bus: add sd_bus_translate_attach_flags()
Daniel Mack [Fri, 29 Nov 2013 16:21:39 +0000 (17:21 +0100)]
libsystemd-bus: add sd_bus_translate_attach_flags()

Factor out code from sd_bus_negotiate_attach_creds() to a generic
translate function, so it can be used from other places.