le_cfg_interface.h
Go to the documentation of this file.
23 * Apps can also be granted read or write access to any other tree with any other name (e.g., a tree272 //--------------------------------------------------------------------------------------------------275 * Connect the current client thread to the service providing this API. Block until the service is278 * For each thread that wants to use this API, either ConnectService or TryConnectService must be279 * called before any other functions in this API. Normally, ConnectService is automatically called284 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------293 * Try to connect the current client thread to the service providing this API. Return with an error296 * For each thread that wants to use this API, either ConnectService or TryConnectService must be297 * called before any other functions in this API. Normally, ConnectService is automatically called304 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.305 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).308 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------320 * longer a connection to the service, and the functions in this API can't be used. For details, see325 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------336 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------379 //--------------------------------------------------------------------------------------------------383 //--------------------------------------------------------------------------------------------------387 //--------------------------------------------------------------------------------------------------391 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------399 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------411 //--------------------------------------------------------------------------------------------------417 //--------------------------------------------------------------------------------------------------419 (423 //--------------------------------------------------------------------------------------------------431 * @note A tree transaction is global to that tree; a long-held read transaction will block other436 //--------------------------------------------------------------------------------------------------443 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------465 //--------------------------------------------------------------------------------------------------472 //--------------------------------------------------------------------------------------------------479 //--------------------------------------------------------------------------------------------------481 * Close and free the given iterator object. If the iterator is a write iterator, the transaction486 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------502 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------521 //--------------------------------------------------------------------------------------------------528 //--------------------------------------------------------------------------------------------------534 * children of this node are not written to, then this node will not persist even if the iterator is542 //--------------------------------------------------------------------------------------------------549 //--------------------------------------------------------------------------------------------------570 //--------------------------------------------------------------------------------------------------577 //--------------------------------------------------------------------------------------------------607 //--------------------------------------------------------------------------------------------------624 //--------------------------------------------------------------------------------------------------630 //--------------------------------------------------------------------------------------------------641 //--------------------------------------------------------------------------------------------------648 //--------------------------------------------------------------------------------------------------665 //--------------------------------------------------------------------------------------------------672 //--------------------------------------------------------------------------------------------------685 //--------------------------------------------------------------------------------------------------689 //--------------------------------------------------------------------------------------------------696 //--------------------------------------------------------------------------------------------------705 //--------------------------------------------------------------------------------------------------716 //--------------------------------------------------------------------------------------------------727 //--------------------------------------------------------------------------------------------------738 //--------------------------------------------------------------------------------------------------747 //--------------------------------------------------------------------------------------------------758 //--------------------------------------------------------------------------------------------------764 //--------------------------------------------------------------------------------------------------775 //--------------------------------------------------------------------------------------------------787 //--------------------------------------------------------------------------------------------------809 //--------------------------------------------------------------------------------------------------816 //--------------------------------------------------------------------------------------------------830 //--------------------------------------------------------------------------------------------------843 //--------------------------------------------------------------------------------------------------858 //--------------------------------------------------------------------------------------------------865 //--------------------------------------------------------------------------------------------------879 //--------------------------------------------------------------------------------------------------890 //--------------------------------------------------------------------------------------------------905 //--------------------------------------------------------------------------------------------------914 //--------------------------------------------------------------------------------------------------928 //--------------------------------------------------------------------------------------------------938 //--------------------------------------------------------------------------------------------------953 //--------------------------------------------------------------------------------------------------960 //--------------------------------------------------------------------------------------------------974 //--------------------------------------------------------------------------------------------------979 //--------------------------------------------------------------------------------------------------986 //--------------------------------------------------------------------------------------------------988 * Make a given node empty. If the node doesn't currently exist then it is created as a new empty991 //--------------------------------------------------------------------------------------------------998 //--------------------------------------------------------------------------------------------------1006 //--------------------------------------------------------------------------------------------------1022 //--------------------------------------------------------------------------------------------------1026 //--------------------------------------------------------------------------------------------------1036 //--------------------------------------------------------------------------------------------------1039 * value, then it will be rounded and returned as an integer. Otherwise If the underlying value is1044 //--------------------------------------------------------------------------------------------------1054 //--------------------------------------------------------------------------------------------------1058 //--------------------------------------------------------------------------------------------------1068 //--------------------------------------------------------------------------------------------------1078 //--------------------------------------------------------------------------------------------------1088 //--------------------------------------------------------------------------------------------------1094 //--------------------------------------------------------------------------------------------------1104 //--------------------------------------------------------------------------------------------------1111 //--------------------------------------------------------------------------------------------------1121 //--------------------------------------------------------------------------------------------------1125 //--------------------------------------------------------------------------------------------------void le_cfg_QuickSetInt(const char *path, int32_t value)void le_cfg_QuickSetFloat(const char *path, double value)void le_cfg_RemoveChangeHandler(le_cfg_ChangeHandlerRef_t addHandlerRef)void le_cfg_DisconnectService(void)void le_cfg_SetBool(le_cfg_IteratorRef_t iteratorRef, const char *path, bool value)void le_cfg_SetString(le_cfg_IteratorRef_t iteratorRef, const char *path, const char *value)bool le_cfg_QuickGetBool(const char *path, bool defaultValue)le_cfg_ChangeHandlerRef_t le_cfg_AddChangeHandler(const char *newPath, le_cfg_ChangeHandlerFunc_t handlerPtr, void *contextPtr)struct le_cfg_ChangeHandler * le_cfg_ChangeHandlerRef_tDefinition: le_cfg_interface.h:408le_result_t le_cfg_GoToNextSibling(le_cfg_IteratorRef_t iteratorRef)void le_cfg_SetFloat(le_cfg_IteratorRef_t iteratorRef, const char *path, double value)le_cfg_IteratorRef_t le_cfg_CreateReadTxn(const char *basePath)int32_t le_cfg_GetInt(le_cfg_IteratorRef_t iteratorRef, const char *path, int32_t defaultValue)double le_cfg_QuickGetFloat(const char *path, double defaultValue)void le_cfg_ConnectService(void)void le_cfg_GoToNode(le_cfg_IteratorRef_t iteratorRef, const char *newPath)void le_cfg_QuickDeleteNode(const char *path)void le_cfg_QuickSetString(const char *path, const char *value)void le_cfg_CommitTxn(le_cfg_IteratorRef_t iteratorRef)le_result_t le_cfg_GetPath(le_cfg_IteratorRef_t iteratorRef, const char *path, char *pathBuffer, size_t pathBufferNumElements)double le_cfg_GetFloat(le_cfg_IteratorRef_t iteratorRef, const char *path, double defaultValue)void le_cfg_DeleteNode(le_cfg_IteratorRef_t iteratorRef, const char *path)void le_cfg_QuickSetEmpty(const char *path)le_result_t le_cfg_TryConnectService(void)le_cfg_nodeType_t le_cfg_GetNodeType(le_cfg_IteratorRef_t iteratorRef, const char *path)void(* le_cfg_ChangeHandlerFunc_t)(void *contextPtr)Definition: le_cfg_interface.h:419bool le_cfg_NodeExists(le_cfg_IteratorRef_t iteratorRef, const char *path)le_cfg_IteratorRef_t le_cfg_CreateWriteTxn(const char *basePath)void le_cfg_SetInt(le_cfg_IteratorRef_t iteratorRef, const char *path, int32_t value)void le_cfg_CancelTxn(le_cfg_IteratorRef_t iteratorRef)bool le_cfg_IsEmpty(le_cfg_IteratorRef_t iteratorRef, const char *path)int32_t le_cfg_QuickGetInt(const char *path, int32_t defaultValue)le_result_t le_cfg_QuickGetString(const char *path, char *value, size_t valueNumElements, const char *defaultValue)le_result_t le_cfg_GetString(le_cfg_IteratorRef_t iteratorRef, const char *path, char *value, size_t valueNumElements, const char *defaultValue)le_result_t le_cfg_GoToFirstChild(le_cfg_IteratorRef_t iteratorRef)void le_cfg_SetEmpty(le_cfg_IteratorRef_t iteratorRef, const char *path)void le_cfg_QuickSetBool(const char *path, bool value)bool le_cfg_GetBool(le_cfg_IteratorRef_t iteratorRef, const char *path, bool defaultValue)le_result_t le_cfg_GetNodeName(le_cfg_IteratorRef_t iteratorRef, const char *path, char *name, size_t nameNumElements)le_result_t le_cfg_GoToParent(le_cfg_IteratorRef_t iteratorRef)Non-leaf node, this node is the parent of other nodes.Definition: le_cfg_interface.h:362