service
[Easydbus Library API]

Collaboration diagram for service:

Detailed Description

Module for manage DBus Service

TO COMPLETE

Service Meta Information

Contact:
Daniele Rondina aka Ge@@ru <geaaru@gmail.com>
Status:
EasyDbus Core Library
License:
GPL
Contributor(s):


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.


Function Documentation

void easydbus_init ( void   ) 

Init easydbus library function.

Todo:
manage flags for threads init or other.

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.

Todo:
  • see where insert this functions, in what group.
Parameters:
data EasyDbus_conn object pointer
service_name service to start.
Returns:
-1 error

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 }


Generated on Thu Apr 10 10:03:02 2008 for EasyDbus-0.2 by  doxygen 1.5.4