Installs a configuration listener, which is a callback function which will be called every time a change occurs on a given configuration entry.
Creates a new GdaDataSourceInfo structure from an existing one.
Gets a GdaDataSourceInfo structure from the data source list given its name.
Deallocates all memory associated to the given GdaDataSourceInfo.
Frees a list of GdaDataSourceInfo structures.
Frees all memory used by the given GList, which must be the return value from either gda_config_list_sections and gda_config_list_keys.
Frees a list of GdaProviderInfo structures.
Gets the value of the specified configuration entry as a boolean.
Returns a list of all data sources currently configured in the system. Each of the nodes in the returned GList is a GdaDataSourceInfo. To free the returned list, call the gda_config_free_data_source_list function.
Fills and returns a new GdaDataModel object using information from all data sources which are currently configured in the system. Rows are separated in 6 columns: 'Name', 'Provider', 'Connection string', 'Description', 'Username' and 'Password'.
Gets the value of the specified configuration entry as a float.
Gets the value of the specified configuration entry as an integer.
Gets a GdaProviderInfo structure from the provider list given its name.
Returns 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.
Fills and returns a new GdaDataModel object using information from all providers which are currently installed in the system. Rows are separated in 3 columns: 'Id', 'Location' and 'Description'.
Gets the value of the specified configuration entry as a string. You are then responsible to free the returned string.
Gets a string representing the type of the value of the given key. The caller is responsible of freeing the returned value.
Checks whether the given key exists in the configuration system.
Checks whether the given section exists in the configuration system.
Returns a list of all keys that exist under the given path. To free the returned value, you can use gda_config_free_list.
Returns 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.
Removes the given data source from the GDA configuration.
Removes the given entry from the configuration database. If the section is empty, also remove the section.
Removes a configuration listener previously installed with gda_config_add_listener, given its ID.
Removes the given section from the configuration database.
Adds a new data source (or update an existing one) to the GDA configuration, based on the parameters given.
Saves a data source in the libgda configuration given a GdaDataSourceInfo structure containing all the information about the data source.
Sets the given configuration entry to contain a boolean.
Sets the given configuration entry to contain a float.
Sets the given configuration entry to contain an integer.
Sets the given configuration entry to contain a string.
Description The functions in this section allow applications an easy access to the libgda configuration, thus making them able to access the list of data sources configured in the system, for instance.