diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-07-30 14:05:50 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-22 14:57:53 -0400 |
commit | fbaa3ff3a5e45bffea373d0bea4ccd206db37a45 (patch) | |
tree | 611c981b4d60b89d3d710cdc2fa0c390dd92d8d2 /ini/ini_parse_ut.c | |
parent | bcfbcf2e8d578580f308b5bdded49b166650f131 (diff) | |
download | ding-libs-fbaa3ff3a5e45bffea373d0bea4ccd206db37a45.tar.gz ding-libs-fbaa3ff3a5e45bffea373d0bea4ccd206db37a45.tar.xz ding-libs-fbaa3ff3a5e45bffea373d0bea4ccd206db37a45.zip |
Starting to consolidate the new interface in one place
I realized that the new high level interface should be
defined in one file instead of being scattered in many headers.
I would have to eventuallu eliminate ini_configobj.h too
and move everything to the new interface in ini_config.h.
This patch renames couple functions to be consistent
with the naming convention and removes ini_parse.h header.
Diffstat (limited to 'ini/ini_parse_ut.c')
-rw-r--r-- | ini/ini_parse_ut.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ini/ini_parse_ut.c b/ini/ini_parse_ut.c index 08e55f6..963579b 100644 --- a/ini/ini_parse_ut.c +++ b/ini/ini_parse_ut.c @@ -24,7 +24,6 @@ #include <errno.h> #include <stdlib.h> #include "ini_defines.h" -#include "ini_parse.h" #include "ini_config.h" #include "ini_configobj.h" #include "simplebuffer.h" @@ -72,7 +71,7 @@ int test_one_file(const char *filename) return error; } - error = ini_parse_config(ff, + error = ini_config_parse(ff, filename, ini_config, INI_STOP_ON_NONE, @@ -92,7 +91,7 @@ int test_one_file(const char *filename) return error; } - error = ini_serialize_config(ini_config, sbobj); + error = ini_config_serialize(ini_config, sbobj); if (error != EOK) { printf("Failed to parse configuration. Error %d.\n", error); ini_config_destroy(ini_config); |