summaryrefslogtreecommitdiffstats
path: root/common/ini/ini_config.c
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-07-02 19:22:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-02 20:02:34 -0400
commitaf6b9f749f3f9ade3727bb0b43baffbdbd26cdcb (patch)
tree333b6d40428e45c62fbb7d111939363a7786f853 /common/ini/ini_config.c
parent09c4b073ca0bdf8d208cbcc7e84a7d33629213d2 (diff)
downloadsssd-af6b9f749f3f9ade3727bb0b43baffbdbd26cdcb.tar.gz
sssd-af6b9f749f3f9ade3727bb0b43baffbdbd26cdcb.tar.xz
sssd-af6b9f749f3f9ade3727bb0b43baffbdbd26cdcb.zip
Adding wrappers to free data in INI API.
See ticket #37 in sssd track.
Diffstat (limited to 'common/ini/ini_config.c')
-rw-r--r--common/ini/ini_config.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/ini/ini_config.c b/common/ini/ini_config.c
index 1d318db9c..9b23c94cd 100644
--- a/common/ini/ini_config.c
+++ b/common/ini/ini_config.c
@@ -415,6 +415,30 @@ static int ini_to_collection(const char *filename,
}
/*********************************************************************/
+/* Function to free configuration */
+void free_ini_config(struct collection_item *ini_config)
+{
+ TRACE_FLOW_STRING("free_ini_config", "Entry");
+ col_destroy_collection(ini_config);
+ TRACE_FLOW_STRING("free_ini_config", "Exit");
+}
+
+/* Function to free configuration error list */
+void free_ini_config_errors(struct collection_item *error_set)
+{
+ TRACE_FLOW_STRING("free_ini_config_errors", "Entry");
+ col_destroy_collection(error_set);
+ TRACE_FLOW_STRING("free_ini_config_errors", "Exit");
+}
+
+/* Function to free configuration lines list */
+void free_ini_config_lines(struct collection_item *lines)
+{
+ TRACE_FLOW_STRING("free_ini_config_lines", "Entry");
+ col_destroy_collection(lines);
+ TRACE_FLOW_STRING("free_ini_config_lines", "Exit");
+}
+
/* Read configuration information from a file */
int config_from_file(const char *application,
const char *config_file,