Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-05-20 | bus: calculate bloom filter for match | Lennart Poettering | |
Yay! Filtering using kernel bloom filter matches works now! Yippieh! | |||
2013-05-17 | bus: add APIs for negotiating what is attached to messages | Lennart Poettering | |
2013-05-17 | bus: add minimal locking around the memfd cache | Lennart Poettering | |
We want to allow clients to process an sd_bus_message on a different thread than it was received on. Since unreffing a bus message might readd some of its memfds to the memfd cache add some minimal locking around the cache. | |||
2013-05-17 | bus: return ECHILD as soon as people try to reuse a bus connection across a ↵ | Lennart Poettering | |
fork() | |||
2013-05-17 | bus: actually unmap kdbus pool after use | Lennart Poettering | |
2013-05-17 | bus: keep kernel bus fd around during entire life-time of bus | Lennart Poettering | |
We need this since we might need to invoke the release ioctl for messages. Since we don't want to add any locking for that we simply keep a reference to the bus and then rely that the fd stays valid all the time. | |||
2013-05-16 | bus: make bus ref counting atomic | Lennart Poettering | |
This is preparation to allow sd_bus_message obejcts to be processed in a different thread from their originating sd_bus object. | |||
2013-05-16 | bus: synthesize timeout message errors instead of returning error codes | Lennart Poettering | |
2013-05-14 | bus: properly handle message bodies that are a chain of memory areas rather ↵ | Lennart Poettering | |
than a single one | |||
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 | |