diff options
author | Eric Laurent <elaurent@google.com> | 2011-05-26 13:57:03 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-05-26 13:57:03 -0700 |
commit | c3cf1a827807d11b07bce9d6941342c68808aab1 (patch) | |
tree | fbb3b871789dfd3bbd9f514bf4694fce94afd680 /include | |
parent | 7956d759be249fabef78a933db273709661e4284 (diff) | |
download | system_core-c3cf1a827807d11b07bce9d6941342c68808aab1.zip system_core-c3cf1a827807d11b07bce9d6941342c68808aab1.tar.gz system_core-c3cf1a827807d11b07bce9d6941342c68808aab1.tar.bz2 |
Config utils improvement
Added a function to free resources allocated by config node tree.
Change-Id: I2ee8ae642899ec4501fa6e490c5be7efaa2d738e
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/config_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cutils/config_utils.h b/include/cutils/config_utils.h index f3fb370..2dea6f1 100644 --- a/include/cutils/config_utils.h +++ b/include/cutils/config_utils.h @@ -54,6 +54,9 @@ const char* config_str(cnode *root, const char *name, const char *_default); /* add a named child to a config node (or modify it if it already exists) */ void config_set(cnode *root, const char *name, const char *value); +/* free a config node tree */ +void config_free(cnode *root); + #ifdef __cplusplus } #endif |