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 
268 #ifndef LE_CFG_H_INCLUDE_GUARD
269 #define LE_CFG_H_INCLUDE_GUARD
270 
271 
272 #include "legato.h"
273 
274 //--------------------------------------------------------------------------------------------------
278 //--------------------------------------------------------------------------------------------------
280 (
281  const char* serviceInstanceName
283 );
284 
285 //--------------------------------------------------------------------------------------------------
289 //--------------------------------------------------------------------------------------------------
291 (
292  void
293 );
294 
295 
296 //--------------------------------------------------------------------------------------------------
303 //--------------------------------------------------------------------------------------------------
304 typedef struct le_cfg_Iterator* le_cfg_IteratorRef_t;
305 
306 
307 //--------------------------------------------------------------------------------------------------
308 
309 //--------------------------------------------------------------------------------------------------
310 typedef enum
311 {
314 
317 
320 
323 
326 
329 
332 }
334 
335 
336 //--------------------------------------------------------------------------------------------------
340 //--------------------------------------------------------------------------------------------------
341 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
342 
343 
344 //--------------------------------------------------------------------------------------------------
353 //--------------------------------------------------------------------------------------------------
354 typedef void (*le_cfg_ChangeHandlerFunc_t)
355 (
356  void* contextPtr
357 );
358 
359 //--------------------------------------------------------------------------------------------------
372 //--------------------------------------------------------------------------------------------------
373 le_cfg_IteratorRef_t le_cfg_CreateReadTxn
374 (
375  const char* basePath
378 );
379 
380 //--------------------------------------------------------------------------------------------------
395 //--------------------------------------------------------------------------------------------------
396 le_cfg_IteratorRef_t le_cfg_CreateWriteTxn
397 (
398  const char* basePath
401 );
402 
403 //--------------------------------------------------------------------------------------------------
410 //--------------------------------------------------------------------------------------------------
411 void le_cfg_CommitTxn
412 (
413  le_cfg_IteratorRef_t iteratorRef
416 );
417 
418 //--------------------------------------------------------------------------------------------------
425 //--------------------------------------------------------------------------------------------------
426 void le_cfg_CancelTxn
427 (
428  le_cfg_IteratorRef_t iteratorRef
431 );
432 
433 //--------------------------------------------------------------------------------------------------
442 //--------------------------------------------------------------------------------------------------
443 void le_cfg_GoToNode
444 (
445  le_cfg_IteratorRef_t iteratorRef,
448 
449  const char* newPath
452 );
453 
454 //--------------------------------------------------------------------------------------------------
463 //--------------------------------------------------------------------------------------------------
465 (
466  le_cfg_IteratorRef_t iteratorRef
469 );
470 
471 //--------------------------------------------------------------------------------------------------
485 //--------------------------------------------------------------------------------------------------
487 (
488  le_cfg_IteratorRef_t iteratorRef
491 );
492 
493 //--------------------------------------------------------------------------------------------------
514 //--------------------------------------------------------------------------------------------------
516 (
517  le_cfg_IteratorRef_t iteratorRef
520 );
521 
522 //--------------------------------------------------------------------------------------------------
552 //--------------------------------------------------------------------------------------------------
554 (
555  le_cfg_IteratorRef_t iteratorRef,
558 
559  const char* path,
563 
564  char* pathBuffer,
567 
568  size_t pathBufferNumElements
570 );
571 
572 //--------------------------------------------------------------------------------------------------
578 //--------------------------------------------------------------------------------------------------
580 (
581  le_cfg_IteratorRef_t iteratorRef,
584 
585  const char* path
589 );
590 
591 //--------------------------------------------------------------------------------------------------
598 //--------------------------------------------------------------------------------------------------
600 (
601  le_cfg_IteratorRef_t iteratorRef,
604 
605  const char* path,
609 
610  char* name,
613 
614  size_t nameNumElements
616 );
617 
618 //--------------------------------------------------------------------------------------------------
629 //--------------------------------------------------------------------------------------------------
631 (
632  le_cfg_IteratorRef_t iteratorRef,
635 
636  const char* path,
640 
641  const char* name
644 );
645 
646 //--------------------------------------------------------------------------------------------------
650 //--------------------------------------------------------------------------------------------------
652 (
653  const char* newPath,
656 
657  le_cfg_ChangeHandlerFunc_t handlerPtr,
659 
660  void* contextPtr
662 );
663 
664 //--------------------------------------------------------------------------------------------------
668 //--------------------------------------------------------------------------------------------------
670 (
671  le_cfg_ChangeHandlerRef_t addHandlerRef
673 );
674 
675 //--------------------------------------------------------------------------------------------------
684 //--------------------------------------------------------------------------------------------------
686 (
687  le_cfg_IteratorRef_t iteratorRef,
690 
691  const char* path
695 );
696 
697 //--------------------------------------------------------------------------------------------------
708 //--------------------------------------------------------------------------------------------------
709 bool le_cfg_IsEmpty
710 (
711  le_cfg_IteratorRef_t iteratorRef,
714 
715  const char* path
719 );
720 
721 //--------------------------------------------------------------------------------------------------
730 //--------------------------------------------------------------------------------------------------
731 void le_cfg_SetEmpty
732 (
733  le_cfg_IteratorRef_t iteratorRef,
736 
737  const char* path
741 );
742 
743 //--------------------------------------------------------------------------------------------------
749 //--------------------------------------------------------------------------------------------------
751 (
752  le_cfg_IteratorRef_t iteratorRef,
755 
756  const char* path
760 );
761 
762 //--------------------------------------------------------------------------------------------------
774 //--------------------------------------------------------------------------------------------------
776 (
777  le_cfg_IteratorRef_t iteratorRef,
780 
781  const char* path,
786 
787  char* value,
790 
791  size_t valueNumElements,
793 
794  const char* defaultValue
798 );
799 
800 //--------------------------------------------------------------------------------------------------
807 //--------------------------------------------------------------------------------------------------
808 void le_cfg_SetString
809 (
810  le_cfg_IteratorRef_t iteratorRef,
813 
814  const char* path,
818 
819  const char* value
822 );
823 
824 //--------------------------------------------------------------------------------------------------
837 //--------------------------------------------------------------------------------------------------
838 int32_t le_cfg_GetInt
839 (
840  le_cfg_IteratorRef_t iteratorRef,
843 
844  const char* path,
848 
849  int32_t defaultValue
853 );
854 
855 //--------------------------------------------------------------------------------------------------
862 //--------------------------------------------------------------------------------------------------
863 void le_cfg_SetInt
864 (
865  le_cfg_IteratorRef_t iteratorRef,
868 
869  const char* path,
873 
874  int32_t value
877 );
878 
879 //--------------------------------------------------------------------------------------------------
888 //--------------------------------------------------------------------------------------------------
889 double le_cfg_GetFloat
890 (
891  le_cfg_IteratorRef_t iteratorRef,
894 
895  const char* path,
899 
900  double defaultValue
904 );
905 
906 //--------------------------------------------------------------------------------------------------
913 //--------------------------------------------------------------------------------------------------
914 void le_cfg_SetFloat
915 (
916  le_cfg_IteratorRef_t iteratorRef,
919 
920  const char* path,
924 
925  double value
928 );
929 
930 //--------------------------------------------------------------------------------------------------
940 //--------------------------------------------------------------------------------------------------
941 bool le_cfg_GetBool
942 (
943  le_cfg_IteratorRef_t iteratorRef,
946 
947  const char* path,
951 
952  bool defaultValue
956 );
957 
958 //--------------------------------------------------------------------------------------------------
965 //--------------------------------------------------------------------------------------------------
966 void le_cfg_SetBool
967 (
968  le_cfg_IteratorRef_t iteratorRef,
971 
972  const char* path,
976 
977  bool value
980 );
981 
982 //--------------------------------------------------------------------------------------------------
987 //--------------------------------------------------------------------------------------------------
989 (
990  const char* path
993 );
994 
995 //--------------------------------------------------------------------------------------------------
1000 //--------------------------------------------------------------------------------------------------
1002 (
1003  const char* path
1006 );
1007 
1008 //--------------------------------------------------------------------------------------------------
1016 //--------------------------------------------------------------------------------------------------
1018 (
1019  const char* path,
1022 
1023  char* value,
1026 
1027  size_t valueNumElements,
1029 
1030  const char* defaultValue
1033 );
1034 
1035 //--------------------------------------------------------------------------------------------------
1039 //--------------------------------------------------------------------------------------------------
1041 (
1042  const char* path,
1045 
1046  const char* value
1049 );
1050 
1051 //--------------------------------------------------------------------------------------------------
1059 //--------------------------------------------------------------------------------------------------
1060 int32_t le_cfg_QuickGetInt
1061 (
1062  const char* path,
1065 
1066  int32_t defaultValue
1069 );
1070 
1071 //--------------------------------------------------------------------------------------------------
1075 //--------------------------------------------------------------------------------------------------
1076 void le_cfg_QuickSetInt
1077 (
1078  const char* path,
1081 
1082  int32_t value
1085 );
1086 
1087 //--------------------------------------------------------------------------------------------------
1095 //--------------------------------------------------------------------------------------------------
1096 double le_cfg_QuickGetFloat
1097 (
1098  const char* path,
1101 
1102  double defaultValue
1105 );
1106 
1107 //--------------------------------------------------------------------------------------------------
1111 //--------------------------------------------------------------------------------------------------
1113 (
1114  const char* path,
1117 
1118  double value
1121 );
1122 
1123 //--------------------------------------------------------------------------------------------------
1130 //--------------------------------------------------------------------------------------------------
1132 (
1133  const char* path,
1136 
1137  bool defaultValue
1140 );
1141 
1142 //--------------------------------------------------------------------------------------------------
1146 //--------------------------------------------------------------------------------------------------
1148 (
1149  const char* path,
1152 
1153  bool value
1156 );
1157 
1158 
1159 #endif // LE_CFG_H_INCLUDE_GUARD
1160 
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_ChangeHandlerFunc_t)(void *contextPtr)
Definition: le_cfg_interface.h:355
void le_cfg_StopClient(void)
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:324
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:341
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:312
double le_cfg_QuickGetFloat(const char *path, double defaultValue)
A string encoded as utf8.
Definition: le_cfg_interface.h:315
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:318
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:310
Node doesn't exist.
Definition: le_cfg_interface.h:330
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)
void le_cfg_StartClient(const char *serviceInstanceName)
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:321
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:327