Details
gda_config_get_string ()
gchar* gda_config_get_string (const gchar *path); |
Gets the value of the specified configuration entry as a string. You
are then responsible to free the returned string
gda_config_get_int ()
gint gda_config_get_int (const gchar *path); |
Gets the value of the specified configuration entry as an integer
gda_config_get_float ()
gdouble gda_config_get_float (const gchar *path); |
Gets the value of the specified configuration entry as a float
gda_config_get_boolean ()
gboolean gda_config_get_boolean (const gchar *path); |
Gets the value of the specified configuration entry as a boolean
gda_config_set_string ()
void gda_config_set_string (const gchar *path,
const gchar *new_value); |
Sets the given configuration entry to contain a string
gda_config_set_int ()
void gda_config_set_int (const gchar *path,
gint new_value); |
Sets the given configuration entry to contain an integer
gda_config_set_float ()
void gda_config_set_float (const gchar *path,
gdouble new_value); |
Sets the given configuration entry to contain a float
gda_config_set_boolean ()
void gda_config_set_boolean (const gchar *path,
gboolean new_value); |
Sets the given configuration entry to contain a boolean
gda_config_remove_section ()
void gda_config_remove_section (const gchar *path); |
Remove the given section from the configuration database
gda_config_remove_key ()
void gda_config_remove_key (const gchar *path); |
Remove the given entry from the configuration database
gda_config_has_section ()
gboolean gda_config_has_section (const gchar *path); |
Checks whether the given section exists in the configuration
system
gda_config_has_key ()
gboolean gda_config_has_key (const gchar *path); |
Check whether the given key exists in the configuration system
gda_config_list_sections ()
GList* gda_config_list_sections (const gchar *path); |
Return a GList containing the names of all the sections available
under the given root directory.
To free the returned value, you can use gda_config_free_list
gda_config_list_keys ()
GList* gda_config_list_keys (const gchar *path); |
Returns a list of all keys that exist under the given path.
To free the returned value, you can use gda_config_free_list
gda_config_get_type ()
gchar* gda_config_get_type (const gchar *path); |
Gets a string representing the type of the value of the given key.
The caller is responsible of freeing the returned value.
GdaConfigListenerFunc ()
void (*GdaConfigListenerFunc) (const gchar *path,
gpointer user_data); |
gda_config_add_listener ()
Installs a configuration listener, which is a callback function
which will be called every time a change occurs on a given
configuration entry.
gda_config_remove_listener ()
void gda_config_remove_listener (guint id); |
GdaProviderInfo
typedef struct {
gchar *id;
gchar *location;
gchar *description;
GList *gda_params;
} GdaProviderInfo; |
gda_config_get_provider_list ()
GList* gda_config_get_provider_list (void); |
Return a list of all providers currently installed in
the system. Each of the nodes in the returned GList
is a GdaProviderInfo. To free the returned list,
call the gda_config_free_provider_list function.
gda_config_free_provider_list ()
void gda_config_free_provider_list (GList *list); |
Free a list of GdaProviderInfo structures.
gda_config_get_provider_by_name ()
gda_config_free_provider_info ()
GdaDataSourceInfo
typedef struct {
gchar *name;
gchar *provider;
gchar *cnc_string;
gchar *description;
gchar *username;
gchar *password;
} GdaDataSourceInfo; |
gda_config_get_data_source_list ()
GList* gda_config_get_data_source_list (void); |
gda_config_find_data_source ()
gda_config_copy_data_source_info ()
gda_config_free_data_source_info ()
gda_config_free_data_source_list ()
void gda_config_free_data_source_list
(GList *list); |
gda_config_get_data_source_model ()
GdaDataModel* gda_config_get_data_source_model
(void); |
gda_config_save_data_source ()
void gda_config_save_data_source (const gchar *name,
const gchar *provider,
const gchar *cnc_string,
const gchar *description,
const gchar *username,
const gchar *password); |
Adds a new data source (or update an existing one) to the GDA
configuration, based on the parameters given.
gda_config_remove_data_source ()
void gda_config_remove_data_source (const gchar *name); |
Removes the given data source from the GDA configuration.
GDA_CONFIG_SECTION_DATASOURCES
#define GDA_CONFIG_SECTION_DATASOURCES "/apps/libgda/Datasources" |
GDA_CONFIG_SECTION_LAST_CONNECTIONS
#define GDA_CONFIG_SECTION_LAST_CONNECTIONS "/apps/libgda/LastConnections" |
GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS
#define GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS "/apps/libgda/MaxLastConnections" |