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 app143 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------153 * Connect the current client thread to the service providing this API. Block until the service is156 * For each thread that wants to use this API, either ConnectService or TryConnectService must be157 * called before any other functions in this API. Normally, ConnectService is automatically called162 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------171 * Try to connect the current client thread to the service providing this API. Return with an error174 * For each thread that wants to use this API, either ConnectService or TryConnectService must be175 * called before any other functions in this API. Normally, ConnectService is automatically called184 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).187 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------197 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants200 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------213 * longer a connection to the service, and the functions in this API can't be used. For details, see218 //--------------------------------------------------------------------------------------------------225 //--------------------------------------------------------------------------------------------------229 //--------------------------------------------------------------------------------------------------233 //--------------------------------------------------------------------------------------------------238 * This function will import a sub-tree as part of the iterator's current transaction. This allows239 * you to create an iterator on a given node. Import a sub-tree, and then examine the contents of248 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------263 * Take a node given from nodePath and stream it and it's children to the file given by filePath.265 * This funciton uses the iterator's read transaction, and takes a snapshot of the current state of273 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------323 * @return LE_OK if there is enough room to copy the name into the supplied buffer. LE_OVERFLOW if327 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------struct le_cfgAdmin_Iterator * le_cfgAdmin_IteratorRef_tDefinition: le_cfgAdmin_interface.h:230le_result_t le_cfgAdmin_ImportTree(le_cfg_IteratorRef_t iteratorRef, const char *LE_NONNULL filePath, const char *LE_NONNULL nodePath)void le_cfgAdmin_ReleaseTreeIterator(le_cfgAdmin_IteratorRef_t iteratorRef)le_result_t le_cfgAdmin_NextTree(le_cfgAdmin_IteratorRef_t iteratorRef)void le_cfgAdmin_DisconnectService(void)void(* le_cfgAdmin_DisconnectHandler_t)(void *)Definition: le_cfgAdmin_interface.h:148le_cfgAdmin_IteratorRef_t le_cfgAdmin_CreateTreeIterator(void)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_ConnectService(void)le_result_t le_cfgAdmin_TryConnectService(void)le_result_t le_cfgAdmin_GetTreeName(le_cfgAdmin_IteratorRef_t iteratorRef, char *name, size_t nameSize)void le_cfgAdmin_DeleteTree(const char *LE_NONNULL treeName)