![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Printing coordinator. More...
Functions | |
| static void | notify_dbus_error (const char *status, const DBusError *error) |
| static void | notify_error (const char *status, int error_code) |
| static void | unregister_dbus_msg_handler (DBusConnection *connection, void *user_data) |
| void * | dbus_coordinator_allocate (DBusBusType dbus, void *data) |
| void | dbus_coordinator_loop (void *handle, volatile sig_atomic_t *quit) |
| void | dbus_coordinator_exit (void *handle) |
DBUS specific setup for the printing coordinator.
|
static |
Report status message and a DBUS error to systemd
| [in] | status | A status message to explain the error |
| [in] | error | DBUS generated error info |
The message can be seen by running the command
$ systemctl status caps-printing-coordinator.service
|
static |
Report status message and error code to systemd
| [in] | status | A status message to explain the error |
| [in] | error_code | A value from the errno variable |
The message can be seen by running the command
$ systemctl status caps-printing-coordinator.service
|
static |
It is still unclear for what it is good for
| [in] | connection | DBUS connection |
| [in] | user_data | TODO |
| void * dbus_coordinator_allocate | ( | DBusBusType | dbus, |
| void * | data | ||
| ) |
Prepare the DBUS interface for a full featured communication
| [in] | dbus | Type of DBUS to connect to |
| [in] | data | Pointer to use in all DBUS callbacks (here: the main coordinator structure) |
| Pointer | A DBUS connection (transparent) |
| NULL | Connection impossible |
| void dbus_coordinator_loop | ( | void * | handle, |
| volatile sig_atomic_t * | quit | ||
| ) |
| void dbus_coordinator_exit | ( | void * | handle | ) |