Library initialisation

Library initialisation — Functions for library initialisation

Synopsis




gboolean    osso_abook_init                 (int *argc,
                                             char ***argv,
                                             osso_context_t *osso_context);
gboolean    osso_abook_init_with_name       (const char *name,
                                             osso_context_t *osso_context);
osso_context_t* osso_abook_get_osso_context (void);
void        osso_abook_set_osso_context     (osso_context_t *osso_context);

Description

Details

osso_abook_init ()

gboolean    osso_abook_init                 (int *argc,
                                             char ***argv,
                                             osso_context_t *osso_context);

Initializes the OssoABook API.

argc : Address of the argc parameter of your main() function. Changed if any arguments were handled.
argv : Address of the argv parameter of main(). Any parameters understood by gtk_init() are stripped before return.
osso_context : The osso_context_t of this application.
Returns : TRUE on success, FALSE otherwise.

osso_abook_init_with_name ()

gboolean    osso_abook_init_with_name       (const char *name,
                                             osso_context_t *osso_context);

Initializes the OssoABook API. This form is to be used by plugins or any other situation where argc and argv are either incorrect or unavailable.

name : The name of this application.
osso_context : The osso_context_t of this application.
Returns : TRUE on success, FALSE otherwise.

osso_abook_get_osso_context ()

osso_context_t* osso_abook_get_osso_context (void);

Obtains the osso_context_t for this instance.

Returns : An osso_context_t

osso_abook_set_osso_context ()

void        osso_abook_set_osso_context     (osso_context_t *osso_context);

Sets the osso_context for this instance.

osso_context : An osso_context_t.