Bus server. More...
Related Functions | |
(Note that these are not member functions.) | |
| int | adbus_remote_dispatch (adbus_Remote *r, adbus_Message *m) |
| Dispatches a message from the given remote. | |
| int | adbus_remote_parse (adbus_Remote *r, adbus_Buffer *b) |
| Dispatches all complete messages in the provided buffer from the given remote. | |
| adbus_Server * | adbus_serv_new (adbus_Interface *bus) |
| Creates a new server using the provided fresh "org.freedesktop.DBus" interface. | |
| void | adbus_serv_free (adbus_Server *s) |
| Frees the server. | |
| adbus_Remote * | adbus_serv_connect (adbus_Server *s, adbus_SendMsgCallback send, void *data) |
| Adds a new remote to the server. | |
| void | adbus_remote_disconnect (adbus_Remote *r) |
| Removes a remote from the server. | |
Bus server.
The provided bus server is a minimal single threaded server. The server by default provides the following members of the "org.freedesktop.DBus" interface on the "/" and "/org/freedesktop/DBus" paths:
The call to adbus_serv_new() takes a fresh "org.freedesktop.DBus" adbus_Interface, so that the user API can add application specific or platform specific members.
The overall workflow is:
| int adbus_remote_dispatch | ( | adbus_Remote * | r, | |
| adbus_Message * | m | |||
| ) | [related] |
Dispatches a message from the given remote.
| int adbus_remote_parse | ( | adbus_Remote * | r, | |
| adbus_Buffer * | b | |||
| ) | [related] |
Dispatches all complete messages in the provided buffer from the given remote.
| adbus_Remote * adbus_serv_connect | ( | adbus_Server * | s, | |
| adbus_SendMsgCallback | send, | |||
| void * | data | |||
| ) | [related] |
Adds a new remote to the server.
1.6.1