Initialization

Initialization — Library initialization and main loop

Synopsis

void                gnome_db_init                       (const gchar *app_id,
                                                         const gchar *version,
                                                         gint nargs,
                                                         gchar *args[]);
void                gnome_db_main_run                   (GdaInitFunc init_func,
                                                         gpointer user_data);
void                gnome_db_main_quit                  (void);
gchar *             gnome_db_get_application_exec_path  (const gchar *app_name);

Description

Details

gnome_db_init ()

void                gnome_db_init                       (const gchar *app_id,
                                                         const gchar *version,
                                                         gint nargs,
                                                         gchar *args[]);

Initialization of the libgnomedb library


gnome_db_main_run ()

void                gnome_db_main_run                   (GdaInitFunc init_func,
                                                         gpointer user_data);

This function is a convenience function to specify a function to be called after everything has been correctly initialized (that is, for initializing your own stuff), in an idle callback.

Using it is not mandatory, and usually gtk_main() can be used.

init_func :

function to be called when everything has been initialized

user_data :

data to be passed to the init function

gnome_db_main_quit ()

void                gnome_db_main_quit                  (void);

Convenience function, simply calls gtk_main_quit()


gnome_db_get_application_exec_path ()

gchar *             gnome_db_get_application_exec_path  (const gchar *app_name);

Find the path to the application identified by app_name.

app_name :

the name of the application to find

Returns :

the path as a new string, or NULL if the application cannot be found