Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-04-24 | Add set_consume which always takes ownership | Zbigniew Jędrzejewski-Szmek | |
Freeing in error path is the common pattern with set_put(). | |||
2013-04-15 | bus: handle env vars safely | Lennart Poettering | |
Make sure that our library is safe for usage in SUID programs when it comes to env var handling | |||
2013-04-14 | bus: always explicitly rewind read index before passing message to caller or ↵ | Lennart Poettering | |
callback | |||
2013-04-12 | bus: implement basic name registration with kdbus | Lennart Poettering | |
2013-04-12 | bus: make kdbus work so that we can exchange real messages | Lennart Poettering | |
We have ignition, we have tremendous fire! | |||
2013-04-11 | bus: basic implementation of kdbus client side | Lennart Poettering | |
2013-04-11 | bus: calculate iovec for messages only when we need it | Lennart Poettering | |
2013-04-05 | Use initalization instead of explicit zeroing | Zbigniew Jędrzejewski-Szmek | |
Before, we would initialize many fields twice: first by filling the structure with zeros, and then a second time with the real values. We can let the compiler do the job for us, avoiding one copy. A downside of this patch is that text gets slightly bigger. This is because all zero() calls are effectively inlined: $ size build/.libs/systemd text data bss dec hex filename before 897737 107300 2560 1007597 f5fed build/.libs/systemd after 897873 107300 2560 1007733 f6075 build/.libs/systemd … actually less than 1‰. A few asserts that the parameter is not null had to be removed. I don't think this changes much, because first, it is quite unlikely for the assert to fail, and second, an immediate SEGV is almost as good as an assert. | |||
2013-04-05 | bus: various improvements for test-bus-chat | Lennart Poettering | |
2013-04-05 | bus: add convenience calls for method replies, too | 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-01 | bus: always return something in sd_bus_get_timeout() | 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: 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: implement server mode, and anonymous authentication | 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-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 | bus: fix missing variable initialization | 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: 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: fix uninitialized variable | Lennart Poettering | |
2013-03-22 | bus: validate the hello response properly | Lennart Poettering | |
2013-03-22 | bus: rework synchronization logic | Lennart Poettering | |
Instead of allowing certain actions fail during authentication and connection setup, implicitly synchronize on the connection to be set up completely before returning. | |||
2013-03-22 | bus: implicitly handle peer commands Ping() and GetMachineId() | Lennart Poettering | |
2013-03-22 | bus: enforce limits on all client influenced data objects | Lennart Poettering | |
2013-03-22 | bus: implicitly set no_reply flag on outgoing messages if the serial number ↵ | Lennart Poettering | |
is not kept If nobody keeps the serial number of an outgoing message we know that nobody expects an answer to it, so set the no_reply flag accordingly. | |||
2013-03-21 | bus: implement full method call timeout logic | Lennart Poettering | |
2013-03-20 | bus: hook up client with socket communication | Lennart Poettering | |
2013-03-20 | bus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set() | Lennart Poettering | |
2013-03-20 | bus: demarshal header fields properly | Lennart Poettering | |
2013-03-20 | bus: implement demarshaller | Lennart Poettering | |
2013-03-20 | bus: suppress reply messages to method calls with no_reply set | Lennart Poettering | |
2013-03-20 | bus: add basic implementation of a native bus client library | Lennart Poettering | |