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 app150 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------160 * Connect the current client thread to the service providing this API. Block until the service is163 * For each thread that wants to use this API, either ConnectService or TryConnectService must be164 * called before any other functions in this API. Normally, ConnectService is automatically called169 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------178 * Try to connect the current client thread to the service providing this API. Return with an error181 * For each thread that wants to use this API, either ConnectService or TryConnectService must be182 * called before any other functions in this API. Normally, ConnectService is automatically called191 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).194 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------204 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------220 * longer a connection to the service, and the functions in this API can't be used. For details, see225 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------244 * This function will import a sub-tree as part of the iterator's current transaction. This allows245 * you to create an iterator on a given node. Import a sub-tree, and then examine the contents of254 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------269 * Take a node given from nodePath and stream it and it's children to the file given by filePath.271 * This funciton uses the iterator's read transaction, and takes a snapshot of the current state of279 //--------------------------------------------------------------------------------------------------292 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------329 * @return LE_OK if there is enough room to copy the name into the supplied buffer. LE_OVERFLOW if333 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------le_result_t le_cfgAdmin_NextTree(le_cfgAdmin_IteratorRef_t iteratorRef)struct le_cfgAdmin_Iterator * le_cfgAdmin_IteratorRef_tDefinition: le_cfgAdmin_common.h:36le_result_t le_cfgAdmin_GetTreeName(le_cfgAdmin_IteratorRef_t iteratorRef, char *name, size_t nameSize)le_result_t le_cfgAdmin_TryConnectService(void)void le_cfgAdmin_ReleaseTreeIterator(le_cfgAdmin_IteratorRef_t iteratorRef)le_cfgAdmin_IteratorRef_t le_cfgAdmin_CreateTreeIterator(void)void le_cfgAdmin_ConnectService(void)le_result_t le_cfgAdmin_ImportTree(le_cfg_IteratorRef_t iteratorRef, const char *LE_NONNULL filePath, const char *LE_NONNULL nodePath)void le_cfgAdmin_DeleteTree(const char *LE_NONNULL treeName)void(* le_cfgAdmin_DisconnectHandler_t)(void *)Definition: le_cfgAdmin_interface.h:155LE_FULL_API void le_cfgAdmin_SetServerDisconnectHandler(le_cfgAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_cfgAdmin_DisconnectService(void)le_result_t le_cfgAdmin_ExportTree(le_cfg_IteratorRef_t iteratorRef, const char *LE_NONNULL filePath, const char *LE_NONNULL nodePath)