le_cfgAdmin_interface.h
Go to the documentation of this file.
17 * The Config Tree Admin API is intended to provide tools help with administration of Trees. These18 * administration functions are provided as a separate API for security reasons. The Admin API needs19 * to be explicitly included to use these admin functions keeping access separate from the main app146 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------156 * Connect the current client thread to the service providing this API. Block until the service is159 * For each thread that wants to use this API, either ConnectService or TryConnectService must be160 * called before any other functions in this API. Normally, ConnectService is automatically called165 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------174 * Try to connect the current client thread to the service providing this API. Return with an error177 * For each thread that wants to use this API, either ConnectService or TryConnectService must be178 * called before any other functions in this API. Normally, ConnectService is automatically called187 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).190 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------200 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants203 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------216 * longer a connection to the service, and the functions in this API can't be used. For details, see221 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------240 * This function will import a sub-tree as part of the iterator's current transaction. This allows241 * you to create an iterator on a given node. Import a sub-tree, and then examine the contents of250 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------265 * Take a node given from nodePath and stream it and it's children to the file given by filePath.267 * This funciton uses the iterator's read transaction, and takes a snapshot of the current state of275 //--------------------------------------------------------------------------------------------------288 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------299 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------325 * @return LE_OK if there is enough room to copy the name into the supplied buffer. LE_OVERFLOW if329 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------348 //--------------------------------------------------------------------------------------------------void le_cfgAdmin_ConnectService(void)void le_cfgAdmin_ReleaseTreeIterator(le_cfgAdmin_IteratorRef_t iteratorRef)le_cfgAdmin_IteratorRef_t le_cfgAdmin_CreateTreeIterator(void)le_result_t le_cfgAdmin_ImportTree(le_cfg_IteratorRef_t iteratorRef, const char *LE_NONNULL filePath, const char *LE_NONNULL nodePath)LE_FULL_API void le_cfgAdmin_SetServerDisconnectHandler(le_cfgAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_cfgAdmin_ExportTree(le_cfg_IteratorRef_t iteratorRef, const char *LE_NONNULL filePath, const char *LE_NONNULL nodePath)void(* le_cfgAdmin_DisconnectHandler_t)(void *)Definition: le_cfgAdmin_interface.h:151void le_cfgAdmin_DeleteTree(const char *LE_NONNULL treeName)le_result_t le_cfgAdmin_GetTreeName(le_cfgAdmin_IteratorRef_t iteratorRef, char *name, size_t nameSize)void le_cfgAdmin_DisconnectService(void)le_result_t le_cfgAdmin_TryConnectService(void)le_result_t le_cfgAdmin_NextTree(le_cfgAdmin_IteratorRef_t iteratorRef)