Libgda initialization

Libgda initialization — Library initialization

Synopsis

void                gda_init                            (void);
gchar *             gda_get_application_exec_path       (const gchar *app_name);

Description

Details

gda_init ()

void                gda_init                            (void);

Initializes the GDA library, must be called prior to any Libgda usage. Note that unless the LIBGDA_NO_THREADS environment variable is set (to any value), the GLib thread system will be initialized as well if not yet initialized.


gda_get_application_exec_path ()

gchar *             gda_get_application_exec_path       (const gchar *app_name);

Find the path to the application identified by app_name. For example if the application is "gda-sql", then calling this function will return "/your/prefix/bin/gda-sql-4.0" if Libgda is installed in the "/your/prefix" prefix (which would usually be "/usr"), and for the ABI version 4.0.

app_name :

the name of the application to find

Returns :

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