diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-11-26 23:11:07 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-21 11:16:09 -0500 |
commit | 5dadfb4371b8ba694b8d9431cb6789bf6de485c4 (patch) | |
tree | 2b6843eb1b30a5aa4b23a77a74c7d0a797f9d464 /ini/ini_configobj.h | |
parent | 500eaf3ef5d53a9961443d2f3ea0d7e8b01d4c1f (diff) | |
download | ding-libs-5dadfb4371b8ba694b8d9431cb6789bf6de485c4.tar.gz ding-libs-5dadfb4371b8ba694b8d9431cb6789bf6de485c4.tar.xz ding-libs-5dadfb4371b8ba694b8d9431cb6789bf6de485c4.zip |
New copy and folding functionality
* Added method to copy configuration.
* Added unit test for it.
* Added method to reset boandary for the
whole configuration.
* Added unit test for it.
* Unit test now can read a file
save it read again and save.
Both saves produce same files!
* Reworked the way the parser was dealing
with empty lines. It was sutting
off the value in the middle
if the folded line consisted of
just spaces.
Diffstat (limited to 'ini/ini_configobj.h')
-rw-r--r-- | ini/ini_configobj.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ini/ini_configobj.h b/ini/ini_configobj.h index 81578c0..21198db 100644 --- a/ini/ini_configobj.h +++ b/ini/ini_configobj.h @@ -138,6 +138,10 @@ void ini_config_free_errors(char **errors); int ini_config_parse(struct ini_cfgfile *file_ctx, struct ini_cfgobj *ini_config); +/* Copy configuration */ +int ini_config_copy(struct ini_cfgobj *ini_config, + struct ini_cfgobj **ini_new); + /* Function to print errors from the list */ void ini_print_errors(FILE *file, char **error_list); |