All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Configuration Tree Administration API

This API includes functions for importing and exporting subsections of the config tree to and from a file.

This API also includes an iterator object that can be used to iterate over the list of trees currently known by the system.

An example of printing the list of trees in a system:

le_cfgAdmin_IteratorRef_t iteratorRef = le_cfgAdmin_CreateTreeIterator();
while (le_cfgAdmin_NextTree(iteratorRef) == LE_OK)
{
char treeName[MAX_TREE_NAME] = { 0 };
if (le_cfgAdmin_GetTreeName(iteratorRef, treeName, sizeof(treeName)) == LE_OK)
{
printf("Tree: \"%s\"\n", treeName);
}
else
{
printf("Tree: \"%s\", truncated.\n", treeName);
}
}
le_cfgAdmin_ReleaseTreeIterator(iteratorRef);

Copyright (C) Sierra Wireless, Inc. 2014. All rights reserved. Use of this work is subject to license.