Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-17 | bus: CREDS and NAMES are optional kdbus metadata now | Kay Sievers | |
2013-11-14 | bus: typo | Tom Gundersen | |
Fix a couple of 'void' that should have been 'sd_bus'. | |||
2013-11-12 | bus: detect blocking message calls to our own connection and return ELOOP early | Lennart Poettering | |
2013-11-12 | bus: introduce concept of a default bus for each thread and make use of it ↵ | Lennart Poettering | |
everywhere We want to emphasize bus connections as per-thread communication primitives, hence introduce a concept of a per-thread default bus, and make use of it everywhere. | |||
2013-11-12 | bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call() | Lennart Poettering | |
The call is one of the most important ones we expose, where we place major emphasis on. We should make sure to give it a short, memorable name. | |||
2013-11-06 | bus: export libsystemd-bus as a public library | Zbigniew Jędrzejewski-Szmek | |
Old static libsystemd-bus.la becomes libsystemd-bus-internal.la. memfd functions are also exported in the same library. (Best viewed with --color-words -U0). | |||
2013-11-05 | bus: add sd_bus_get_current() bus call to determine message that is ↵ | Lennart Poettering | |
currently being dispatched | |||
2013-11-05 | bus: make use of assert_return() in all API calls that don't use it yet | Lennart Poettering | |
2013-10-30 | bus: add API call to create bus connection to the system bus of local containers | Lennart Poettering | |
Also, add support for this to machinectl, so that we can enumerate the machines that run inside a container. We must go deeper! | |||
2013-10-30 | bus: move ssh support into public API of libsystem-bus | Lennart Poettering | |
2013-10-18 | bus: automatically flush bus queue when we exit the event loop | Lennart Poettering | |
This way, we do not have to call it manually | |||
2013-10-16 | timedated: use libsystemd-bus instead of libdbus for bus communication | Lennart Poettering | |
Among other things this also adds a few things necessary for the change: - Considerably more powerful error returning APIs in libsystemd-bus - Adapter for connecting an sd_bus to an sd_event - As I reworked the PolicyKit logic to the new library I also made it asynchronous, so that PolicyKit requests of one user cannot block out another user anymore. - We always use the macro names for common bus error. That way it is harder to mistype them since the compiler will notice | |||
2013-10-16 | bus: return 1 on all calls that send messages | Lennart Poettering | |
This way they are nicer to use from method dispatch callbacks as last call, since method dispatch callbacks expect > 0 return if the message got handled. | |||
2013-10-16 | bus: make sure sd_bus_get_timeout() returns a 0 timeout of there are already ↵ | Lennart Poettering | |
read but not dispatched messages | |||
2013-10-14 | bus: make sure that we always keep a ref to the bus when we dispatch callbacks | Lennart Poettering | |
Otherwise the callback might unref the bus we are processing and destroy the object while we are processing it. | |||
2013-10-14 | bus: use assert_return() for more API calls | Lennart Poettering | |
2013-10-14 | list: make our list macros a bit easier to use by not requring type spec on ↵ | Lennart Poettering | |
each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use. | |||
2013-10-11 | bus: split up overly long sd-bus.c into three files | Lennart Poettering | |
2013-10-11 | bus: if a a Set() vtable callback of a writable is left NULL, try to do the ↵ | Lennart Poettering | |
right thing automatically | |||
2013-10-11 | bus: automatically do a NOP reply when a NULL callback is specified for a ↵ | Lennart Poettering | |
method in a vtable Also, allow specifiying NULL as signature in vtables equivalent to "" for empty parameter lists. | |||
2013-10-11 | bus: when NULL is specified as property callback, automatically handle ↵ | Lennart Poettering | |
serialization on Get() | |||
2013-10-11 | bus: make PropertiesChanged emission work | Lennart Poettering | |
2013-10-11 | bus: allow specifying NULL as type string when we want to construct messages ↵ | Lennart Poettering | |
with no payload | |||
2013-10-11 | bus: make GetManagedObjects() work | Lennart Poettering | |
2013-10-09 | bus: fix missing initialization | Lennart Poettering | |
2013-10-09 | bus: fix GetAll() userdata passing | Lennart Poettering | |
2013-10-09 | bus: don't require that if a child object node exists its parent node must too | Lennart Poettering | |
2013-10-09 | libsystemd-bus: add lightweight object vtable implementation for exposing ↵ | Lennart Poettering | |
objects on the bus This adds a lightweight scheme how to define interfaces in static fixed arrays which then can be easily registered on a bus connection. This makes it much easier to write bus services. This automatically handles implementation of the Properties, ObjectManager, and Introspection bus interfaces. | |||
2013-10-02 | dbus: fix return value of dispatch_rqueue() | Lennart Poettering | |
2013-05-22 | bus: add benchmark tool to determine the right threshold for copying vs. memfd | Lennart Poettering | |
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 | |