Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-04-05 | bus: convert a couple of calls over to new convenience functions | Lennart Poettering | |
2013-04-05 | bus: add convenience calls for method replies, too | Lennart Poettering | |
2013-04-05 | bus: when parsing signature strings, accept NULL as empty signature | Lennart Poettering | |
2013-04-05 | bus: make sure callback structs are always properly initialized | Lennart Poettering | |
2013-04-05 | bus: use C99 struct construction for error initializers | Lennart Poettering | |
That way we can allocate an error struct on-the-fly while calling a function. Nice! | |||
2013-04-05 | bus: add convenience functions for constructing and sending method ↵ | Lennart Poettering | |
calls/signals in one call | |||
2013-04-05 | bus: properly detect and handle if a callback is installed/removed from ↵ | Lennart Poettering | |
within a callback | |||
2013-04-05 | bus: don't allow recursive invocation of sd_bus_process() | Lennart Poettering | |
2013-04-04 | test-bus-marshal.c: do not call g_type_init() for modern glib versions | Harald Hoyer | |
2013-04-01 | Always use our own MAX/MIN definitions | Cristian Rodríguez | |
code in src/shared/macro.h only defined MAX/MIN in case they were not defined previously. however the MAX/MIN macros implemented in glibc are not of the "safe" kind but defined as: define MIN(a,b) (((a)<(b))?(a):(b)) define MAX(a,b) (((a)>(b))?(a):(b)) Avoid nasty side effects by using our own versions instead. Also fix the warnings derived from this change. [zj: - modify MAX3 macro to fix warning about _a shadowing _a, - do bootchart/svg.c too, - remove unused MIN3.] | |||
2013-04-01 | bus: always return something in sd_bus_get_timeout() | Lennart Poettering | |
2013-04-01 | bus: be more careful when determining credential data | Lennart Poettering | |
As it turns out SCM_CREDENTIALS is not always supported on socketpair(), so let's also try SO_PEERCRED then. | |||
2013-04-01 | bus: when the first char a server receives isn't the NUL byte immediately fail | Lennart Poettering | |
2013-04-01 | bus: ignore the passed UID on EXTERNAL auth if ANONYMOUS is allowed | Lennart Poettering | |
2013-04-01 | bus: when reading a message from the socket, make sure to note down the size | Lennart Poettering | |
2013-04-01 | bus: reuse sd_is_socket() call | Lennart Poettering | |
2013-04-01 | bus: fall back to readv/writev if recvmsg/sendmsg don't work | Lennart Poettering | |
2013-04-01 | bus: allow two different fds for input/output in sd_bus_set_fd() | Lennart Poettering | |
This is useful so that we can speak D-Bus over a FIFO pair such as stdin+stdout. | |||
2013-03-31 | bus: check return value from bus_type_get_alignment/size | Zbigniew Jędrzejewski-Szmek | |
2013-03-31 | journal-gatewayd: query PID 1 for virtalization | Lennart Poettering | |
Since journal-gatewayd is now running unprivileged, and detecting virtalization requires privileges, query PID1 via D-Bus for the used virtualization. This is also the first time we use libsystemd-bus for more than just testing. https://bugs.freedesktop.org/show_bug.cgi?id=62173 | |||
2013-03-31 | bus: rename sd_bus_get_peer() to sd_bus_get_server_id() | Lennart Poettering | |
This function always returns the server side ID. The name suggested it was actually always the peer's ID, but that's not correct if the call is called on a server bus context. Hence, let's correct the name a bit. | |||
2013-03-31 | bus: s/sd_message_handler_t/sd_bus_message_handler_t/g | Lennart Poettering | |
2013-03-31 | bus: parse matches locally and allow registration of callbacks for them | Lennart Poettering | |
This includes code to parse and split up match strings which will also be useful to calculate bloom filter masks when the time comes. | |||
2013-03-30 | bus: add missing test-bus-server.c | Lennart Poettering | |
2013-03-30 | bus: implement server mode, and anonymous authentication | Lennart Poettering | |
2013-03-30 | bus: if we recieve fds but fd passing is off, consider this an error | Lennart Poettering | |
2013-03-30 | bus: enable SO_PASSCRED only if we are not connected to a bus | Lennart Poettering | |
2013-03-30 | bus: properly set up bus connections with sd_bus_set_exec() | Lennart Poettering | |
2013-03-30 | bus: consider it an error if the first message we get on the bus is not a ↵ | Lennart Poettering | |
reply to HELLO | |||
2013-03-30 | bus: add C++ wrappers to public header files | Lennart Poettering | |
2013-03-29 | Always use errno > 0 to help gcc | Zbigniew Jędrzejewski-Szmek | |
gcc thinks that errno might be negative, and functions could return something positive on error (-errno). Should not matter in practice, but makes an -O4 build much quieter. | |||
2013-03-27 | sd-bus: check c->path for null instead of path | Lukas Nykryn | |
2013-03-26 | tests: skip bus test if bus cannot be opened | Zbigniew Jędrzejewski-Szmek | |
To make the result more visible, special return value is used to tell automake that the test was skipped. While at it, use the same return value in other skipped tests. | |||
2013-03-26 | bus: fix missing variable initialization | Lennart Poettering | |
2013-03-26 | build-sys: make gcc shut up | Lennart Poettering | |
2013-03-26 | bus: when we are talking to a bus, SCM_CREDS/SCM_SECLABEL are not very useful | Lennart Poettering | |
2013-03-26 | bus: automatically generate minimal introspection data to find installed objects | Lennart Poettering | |
2013-03-26 | bus: rename send_hello flag to bus_cient | Lennart Poettering | |
This way we can hide more than just the hello logic behind this flag, for example, later on automatic match management. | |||
2013-03-25 | bus: split socket related code into bus-socket.[ch], to prepare for kdbus ↵ | Lennart Poettering | |
backend | |||
2013-03-25 | bus: implement 'unixexec:' protocol | Lennart Poettering | |
2013-03-25 | bus: make optional whether unix socket passing is negotiated and whether ↵ | Lennart Poettering | |
hello is sent This alos gets rid of explicit sd_open_fd() and sd_open_address() constructors in favour of sd_new() + sd_new_start() where the negotiation parameters may be set it in between. | |||
2013-03-25 | bus: properly handle termination of connections | Lennart Poettering | |
2013-03-25 | bus: implement support for FD passing | Lennart Poettering | |
2013-03-22 | bus: don't free an unallocated var | Zbigniew Jędrzejewski-Szmek | |
Also remove unused variable. | |||
2013-03-22 | bus: move attribute to end of structure, so it is not ignored | Zbigniew Jędrzejewski-Szmek | |
src/libsystemd-bus/bus-message.h:41:1: warning: attribute 'packed' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes] | |||
2013-03-22 | bus: implement object handler registry | Lennart Poettering | |
2013-03-22 | bus: implicitly collect ucred/label information | Lennart Poettering | |
2013-03-22 | bus: also finish connection before returning from sd_bus_get_unique_name() | Lennart Poettering | |
2013-03-22 | bus: when parsing enforce maximum container depth | Lennart Poettering | |
2013-03-22 | bus: fix uninitialized variable | Lennart Poettering | |