All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_cfg_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
252 #ifndef LE_CFG_H_INCLUDE_GUARD
253 #define LE_CFG_H_INCLUDE_GUARD
254 
255 
256 #include "legato.h"
257 
258 //--------------------------------------------------------------------------------------------------
262 //--------------------------------------------------------------------------------------------------
264 (
265  void
266 );
267 
268 //--------------------------------------------------------------------------------------------------
272 //--------------------------------------------------------------------------------------------------
274 (
275  void
276 );
277 
278 
279 //--------------------------------------------------------------------------------------------------
286 //--------------------------------------------------------------------------------------------------
287 typedef struct le_cfg_Iterator* le_cfg_IteratorRef_t;
288 
289 
290 //--------------------------------------------------------------------------------------------------
291 
292 //--------------------------------------------------------------------------------------------------
293 typedef enum
294 {
297 
300 
303 
306 
309 
312 
315 }
317 
318 
319 //--------------------------------------------------------------------------------------------------
320 
321 //--------------------------------------------------------------------------------------------------
322 #define LE_CFG_STR_LEN 511
323 
324 
325 //--------------------------------------------------------------------------------------------------
326 
327 //--------------------------------------------------------------------------------------------------
328 #define LE_CFG_STR_LEN_BYTES 512
329 
330 
331 //--------------------------------------------------------------------------------------------------
332 
333 //--------------------------------------------------------------------------------------------------
334 #define LE_CFG_NAME_LEN 63
335 
336 
337 //--------------------------------------------------------------------------------------------------
338 
339 //--------------------------------------------------------------------------------------------------
340 #define LE_CFG_NAME_LEN_BYTES 64
341 
342 
343 //--------------------------------------------------------------------------------------------------
347 //--------------------------------------------------------------------------------------------------
348 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
349 
350 
351 //--------------------------------------------------------------------------------------------------
360 //--------------------------------------------------------------------------------------------------
361 typedef void (*le_cfg_ChangeHandlerFunc_t)
362 (
363  void* contextPtr
364 );
365 
366 //--------------------------------------------------------------------------------------------------
379 //--------------------------------------------------------------------------------------------------
380 le_cfg_IteratorRef_t le_cfg_CreateReadTxn
381 (
382  const char* basePath
385 );
386 
387 //--------------------------------------------------------------------------------------------------
402 //--------------------------------------------------------------------------------------------------
403 le_cfg_IteratorRef_t le_cfg_CreateWriteTxn
404 (
405  const char* basePath
408 );
409 
410 //--------------------------------------------------------------------------------------------------
417 //--------------------------------------------------------------------------------------------------
418 void le_cfg_CommitTxn
419 (
420  le_cfg_IteratorRef_t iteratorRef
423 );
424 
425 //--------------------------------------------------------------------------------------------------
432 //--------------------------------------------------------------------------------------------------
433 void le_cfg_CancelTxn
434 (
435  le_cfg_IteratorRef_t iteratorRef
438 );
439 
440 //--------------------------------------------------------------------------------------------------
449 //--------------------------------------------------------------------------------------------------
450 void le_cfg_GoToNode
451 (
452  le_cfg_IteratorRef_t iteratorRef,
455 
456  const char* newPath
459 );
460 
461 //--------------------------------------------------------------------------------------------------
470 //--------------------------------------------------------------------------------------------------
472 (
473  le_cfg_IteratorRef_t iteratorRef
476 );
477 
478 //--------------------------------------------------------------------------------------------------
492 //--------------------------------------------------------------------------------------------------
494 (
495  le_cfg_IteratorRef_t iteratorRef
498 );
499 
500 //--------------------------------------------------------------------------------------------------
521 //--------------------------------------------------------------------------------------------------
523 (
524  le_cfg_IteratorRef_t iteratorRef
527 );
528 
529 //--------------------------------------------------------------------------------------------------
559 //--------------------------------------------------------------------------------------------------
561 (
562  le_cfg_IteratorRef_t iteratorRef,
565 
566  const char* path,
570 
571  char* pathBuffer,
574 
575  size_t pathBufferNumElements
577 );
578 
579 //--------------------------------------------------------------------------------------------------
585 //--------------------------------------------------------------------------------------------------
587 (
588  le_cfg_IteratorRef_t iteratorRef,
591 
592  const char* path
596 );
597 
598 //--------------------------------------------------------------------------------------------------
605 //--------------------------------------------------------------------------------------------------
607 (
608  le_cfg_IteratorRef_t iteratorRef,
611 
612  const char* path,
616 
617  char* name,
620 
621  size_t nameNumElements
623 );
624 
625 //--------------------------------------------------------------------------------------------------
638 //--------------------------------------------------------------------------------------------------
640 (
641  le_cfg_IteratorRef_t iteratorRef,
644 
645  const char* path,
649 
650  const char* name
653 );
654 
655 //--------------------------------------------------------------------------------------------------
659 //--------------------------------------------------------------------------------------------------
661 (
662  const char* newPath,
665 
666  le_cfg_ChangeHandlerFunc_t handlerPtr,
668 
669  void* contextPtr
671 );
672 
673 //--------------------------------------------------------------------------------------------------
677 //--------------------------------------------------------------------------------------------------
679 (
680  le_cfg_ChangeHandlerRef_t addHandlerRef
682 );
683 
684 //--------------------------------------------------------------------------------------------------
693 //--------------------------------------------------------------------------------------------------
695 (
696  le_cfg_IteratorRef_t iteratorRef,
699 
700  const char* path
704 );
705 
706 //--------------------------------------------------------------------------------------------------
717 //--------------------------------------------------------------------------------------------------
718 bool le_cfg_IsEmpty
719 (
720  le_cfg_IteratorRef_t iteratorRef,
723 
724  const char* path
728 );
729 
730 //--------------------------------------------------------------------------------------------------
739 //--------------------------------------------------------------------------------------------------
740 void le_cfg_SetEmpty
741 (
742  le_cfg_IteratorRef_t iteratorRef,
745 
746  const char* path
750 );
751 
752 //--------------------------------------------------------------------------------------------------
758 //--------------------------------------------------------------------------------------------------
760 (
761  le_cfg_IteratorRef_t iteratorRef,
764 
765  const char* path
769 );
770 
771 //--------------------------------------------------------------------------------------------------
783 //--------------------------------------------------------------------------------------------------
785 (
786  le_cfg_IteratorRef_t iteratorRef,
789 
790  const char* path,
795 
796  char* value,
799 
800  size_t valueNumElements,
802 
803  const char* defaultValue
807 );
808 
809 //--------------------------------------------------------------------------------------------------
816 //--------------------------------------------------------------------------------------------------
817 void le_cfg_SetString
818 (
819  le_cfg_IteratorRef_t iteratorRef,
822 
823  const char* path,
827 
828  const char* value
831 );
832 
833 //--------------------------------------------------------------------------------------------------
846 //--------------------------------------------------------------------------------------------------
847 int32_t le_cfg_GetInt
848 (
849  le_cfg_IteratorRef_t iteratorRef,
852 
853  const char* path,
857 
858  int32_t defaultValue
862 );
863 
864 //--------------------------------------------------------------------------------------------------
871 //--------------------------------------------------------------------------------------------------
872 void le_cfg_SetInt
873 (
874  le_cfg_IteratorRef_t iteratorRef,
877 
878  const char* path,
882 
883  int32_t value
886 );
887 
888 //--------------------------------------------------------------------------------------------------
899 //--------------------------------------------------------------------------------------------------
900 double le_cfg_GetFloat
901 (
902  le_cfg_IteratorRef_t iteratorRef,
905 
906  const char* path,
910 
911  double defaultValue
915 );
916 
917 //--------------------------------------------------------------------------------------------------
926 //--------------------------------------------------------------------------------------------------
927 void le_cfg_SetFloat
928 (
929  le_cfg_IteratorRef_t iteratorRef,
932 
933  const char* path,
937 
938  double value
941 );
942 
943 //--------------------------------------------------------------------------------------------------
953 //--------------------------------------------------------------------------------------------------
954 bool le_cfg_GetBool
955 (
956  le_cfg_IteratorRef_t iteratorRef,
959 
960  const char* path,
964 
965  bool defaultValue
969 );
970 
971 //--------------------------------------------------------------------------------------------------
978 //--------------------------------------------------------------------------------------------------
979 void le_cfg_SetBool
980 (
981  le_cfg_IteratorRef_t iteratorRef,
984 
985  const char* path,
989 
990  bool value
993 );
994 
995 //--------------------------------------------------------------------------------------------------
1000 //--------------------------------------------------------------------------------------------------
1002 (
1003  const char* path
1006 );
1007 
1008 //--------------------------------------------------------------------------------------------------
1013 //--------------------------------------------------------------------------------------------------
1015 (
1016  const char* path
1019 );
1020 
1021 //--------------------------------------------------------------------------------------------------
1029 //--------------------------------------------------------------------------------------------------
1031 (
1032  const char* path,
1035 
1036  char* value,
1039 
1040  size_t valueNumElements,
1042 
1043  const char* defaultValue
1046 );
1047 
1048 //--------------------------------------------------------------------------------------------------
1052 //--------------------------------------------------------------------------------------------------
1054 (
1055  const char* path,
1058 
1059  const char* value
1062 );
1063 
1064 //--------------------------------------------------------------------------------------------------
1072 //--------------------------------------------------------------------------------------------------
1073 int32_t le_cfg_QuickGetInt
1074 (
1075  const char* path,
1078 
1079  int32_t defaultValue
1082 );
1083 
1084 //--------------------------------------------------------------------------------------------------
1088 //--------------------------------------------------------------------------------------------------
1089 void le_cfg_QuickSetInt
1090 (
1091  const char* path,
1094 
1095  int32_t value
1098 );
1099 
1100 //--------------------------------------------------------------------------------------------------
1110 //--------------------------------------------------------------------------------------------------
1111 double le_cfg_QuickGetFloat
1112 (
1113  const char* path,
1116 
1117  double defaultValue
1120 );
1121 
1122 //--------------------------------------------------------------------------------------------------
1128 //--------------------------------------------------------------------------------------------------
1130 (
1131  const char* path,
1134 
1135  double value
1138 );
1139 
1140 //--------------------------------------------------------------------------------------------------
1147 //--------------------------------------------------------------------------------------------------
1149 (
1150  const char* path,
1153 
1154  bool defaultValue
1157 );
1158 
1159 //--------------------------------------------------------------------------------------------------
1163 //--------------------------------------------------------------------------------------------------
1165 (
1166  const char* path,
1169 
1170  bool value
1173 );
1174 
1175 
1176 #endif // LE_CFG_H_INCLUDE_GUARD
1177 
void le_cfg_QuickSetInt(const char *path, int32_t value)
le_result_t le_cfg_SetNodeName(le_cfg_IteratorRef_t iteratorRef, const char *path, const char *name)
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_ChangeHandlerFunc_t)(void *contextPtr)
Definition: le_cfg_interface.h:362
le_result_t
Definition: le_basics.h:34
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)
64-bit floating point value.
Definition: le_cfg_interface.h:307
le_cfg_ChangeHandlerRef_t le_cfg_AddChangeHandler(const char *newPath, le_cfg_ChangeHandlerFunc_t handlerPtr, void *contextPtr)
struct le_cfg_ChangeHandler * le_cfg_ChangeHandlerRef_t
Definition: le_cfg_interface.h:348
le_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)
A node with no value.
Definition: le_cfg_interface.h:295
double le_cfg_QuickGetFloat(const char *path, double defaultValue)
void le_cfg_ConnectService(void)
A string encoded as utf8.
Definition: le_cfg_interface.h:298
void le_cfg_GoToNode(le_cfg_IteratorRef_t iteratorRef, const char *newPath)
void le_cfg_QuickDeleteNode(const char *path)
Boolean value.
Definition: le_cfg_interface.h:301
void le_cfg_QuickSetString(const char *path, const char *value)
void le_cfg_CommitTxn(le_cfg_IteratorRef_t iteratorRef)
le_cfg_nodeType_t
Definition: le_cfg_interface.h:293
Node doesn't exist.
Definition: le_cfg_interface.h:313
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_cfg_nodeType_t le_cfg_GetNodeType(le_cfg_IteratorRef_t iteratorRef, const char *path)
bool 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)
Signed 32-bit.
Definition: le_cfg_interface.h:304
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:310