chiark / gitweb /
libsystemd-bus: add lightweight object vtable implementation for exposing objects...
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Oct 2013 00:37:10 +0000 (02:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Oct 2013 00:40:07 +0000 (02:40 +0200)
commit29ddb38fea134c6132e4f2dd608e9da3871eaebe
treea3683f3d8064f37efe6d7bb9b454d8a8c81f38d5
parent8d1a28020409ee4afea6ef8c1c4d3522a209284e
libsystemd-bus: add lightweight object vtable implementation for exposing 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.
18 files changed:
.gitignore
Makefile.am
TODO
src/libsystemd-bus/bus-error.c
src/libsystemd-bus/bus-internal.c
src/libsystemd-bus/bus-internal.h
src/libsystemd-bus/bus-introspect.c [new file with mode: 0644]
src/libsystemd-bus/bus-introspect.h [new file with mode: 0644]
src/libsystemd-bus/bus-message.c
src/libsystemd-bus/bus-signature.c
src/libsystemd-bus/bus-signature.h
src/libsystemd-bus/sd-bus.c
src/libsystemd-bus/test-bus-introspect.c [new file with mode: 0644]
src/libsystemd-bus/test-bus-objects.c [new file with mode: 0644]
src/libsystemd-bus/test-bus-signature.c
src/systemd/sd-bus-protocol.h
src/systemd/sd-bus-vtable.h [new file with mode: 0644]
src/systemd/sd-bus.h