![]() |
TO COMPLETE
Modules | |
introspect | |
Module for manage Introspection. | |
ext_signal | |
object | |
Data Structures | |
struct | EasyDbus_core |
EasyDbus_core object EasyDbus_conn presented to user is included in this struct. Every connection is composed of one EasyDbus_core object. More... | |
Functions | |
void | easydbus_init (void) |
Init easydbus library function. | |
int | easydbus_start_service (EasyDbus_conn *data, char *service_name) |
Start service. |
void easydbus_init | ( | void | ) |
Init easydbus library function.
Definition at line 47 of file easydbus.c.
References EasyDbusDebug.
00048 { 00049 EasyDbusDebug ("%s version %s", PACKAGE_NAME, VERSION); 00050 00051 // see if manage this call through a flags 00052 dbus_threads_init_default (); 00053 }
int easydbus_start_service | ( | EasyDbus_conn * | data, | |
char * | service_name | |||
) |
Start service.
data | EasyDbus_conn object pointer | |
service_name | service to start. |
0 ok
Definition at line 79 of file easydbus.c.
References EasyDbus_core::conn, and EasyDbusDebug.
00081 { 00082 struct EasyDbus_core *core = 00083 (struct EasyDbus_core *) data; 00084 DBusError err; 00085 00086 dbus_error_init (&err); 00087 00088 if (dbus_bus_start_service_by_name 00089 (core->conn, service_name, 0, NULL, &err)) { 00090 return 0; 00091 } 00092 00093 EasyDbusDebug ("Error on start service: %s\n", 00094 err.message); 00095 00096 dbus_error_free (&err); 00097 return -1; 00098 }