Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-28 | bus: update kdbus.h and always subscribe to KDBUS_HELLO_ATTACH_NAMES | Kay Sievers | |
2013-11-27 | bus: properly handle if we get disconnected during HELLO phase | Lennart Poettering | |
2013-11-22 | bus: when closing a bus, drop all refs to queued messages, so that the bus ↵ | Lennart Poettering | |
can be freed | |||
2013-11-22 | bus: add calls to query attached objects | Lennart Poettering | |
2013-11-21 | bus: restore selinux access control to PID 1 for properties | Lennart Poettering | |
2013-11-21 | bus: rework message handlers to always take an error argument | Lennart Poettering | |
Message handler callbacks can be simplified drastically if the dispatcher automatically replies to method calls if errors are returned. Thus: add an sd_bus_error argument to all message handlers. When we dispatch a message handler and it returns negative or a set sd_bus_error we send this as message error back to the client. This means errors returned by handlers by default are given back to clients instead of rippling all the way up to the event loop, which is desirable to make things robust. As a side-effect we can now easily turn the SELinux checks into normal function calls, since the method call dispatcher will generate the right error replies automatically now. Also, make sure we always pass the error structure to all property and method handlers as last argument to follow the usual style of passing variables for return values as last argument. | |||
2013-11-21 | bus: rename SD_BUS_ERROR_MAKE to SD_BUS_ERROR_MAKE_CONST to indicate it only ↵ | Lennart Poettering | |
works for const strings | |||
2013-11-21 | bus: let's simplify things by getting rid of unnecessary bus parameters | Lennart Poettering | |
2013-11-21 | bus: add API calls to escape string components of objects paths | Lennart Poettering | |
2013-11-20 | bus: make sure an additional ref to a busevent source doesn't cause the ↵ | Lennart Poettering | |
event source to be triggered again | |||
2013-11-20 | core: convert PID 1 to libsystemd-bus | Lennart Poettering | |
This patch converts PID 1 to libsystemd-bus and thus drops the dependency on libdbus. The only remaining code using libdbus is a test case that validates our bus marshalling against libdbus' marshalling, and this dependency can be turned off. This patch also adds a couple of things to libsystem-bus, that are necessary to make the port work: - Synthesizing of "Disconnected" messages when bus connections are severed. - Support for attaching multiple vtables for the same interface on the same path. This patch also fixes the SetDefaultTarget() and GetDefaultTarget() bus calls which used an inappropriate signature. As a side effect we will now generate PropertiesChanged messages which carry property contents, rather than just invalidation information. | |||
2013-11-20 | bus: add sd_bus_send_to() API call | Lennart Poettering | |
2013-11-20 | bus: bump serial number counter when sending already sealed messages | Lennart Poettering | |
2013-11-18 | bus: TIMESTAMP is optional kdbus metadata now, NAMES are always added | Kay Sievers | |
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. |