Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Initialization


Typedefs

typedef osso_af_context_t osso_context_t

Functions

osso_context_tosso_initialize (const gchar *application, const gchar *version, gboolean activation, GMainContext *context)
void osso_deinitialize (osso_context_t *osso)

Detailed Description

This is the return type for the initialize function.

Typedef Documentation

typedef struct osso_af_context_t osso_context_t
 


Function Documentation

void osso_deinitialize osso_context_t osso  ) 
 

This function will close the message bus connection and free all memory allocated by the library. This function renders the library in an unusable state, osso_initialize has to be called again to reinitialize the library.

Parameters:
osso The library reference as returned by osso_initialize.

osso_context_t* osso_initialize const gchar *  application,
const gchar *  version,
gboolean  activation,
GMainContext *  context
 

This function initializes the library and connects to the D-BUS session and system busses. and integrates with the GLib main loop, and initializes the library for use. osso_initialize should only be called once for each application.

Parameters:
application The name that this application is known as. This is not the name that a user sees, but rather the name that other applications use as an address to communicate with this program, AKA the "D-BUS name".
version The version string of the application. It mus be simply comparable with strcmp().
activation If this is TRUE, then the library assumes that the application binary has been launched by the D-BUS daemon, and thus will connect to the D-BUS activation bus (the D-BUS bus where the D-BUS message that resulted in program activation originated from).
context The GLib main-loop context to connect to, use NULL for the default context.
Returns:
A context to use in later calls to this library. NULL is returned if there is an error.


Generated on Tue Aug 25 08:02:12 1970 for LibOSSO by doxygen 1.3.7