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 
251 #ifndef LE_CFG_H_INCLUDE_GUARD
252 #define LE_CFG_H_INCLUDE_GUARD
253 
254 
255 #include "legato.h"
256 
257 //--------------------------------------------------------------------------------------------------
261 //--------------------------------------------------------------------------------------------------
263 (
264  void
265 );
266 
267 //--------------------------------------------------------------------------------------------------
271 //--------------------------------------------------------------------------------------------------
273 (
274  void
275 );
276 
277 
278 //--------------------------------------------------------------------------------------------------
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 //--------------------------------------------------------------------------------------------------
357 //--------------------------------------------------------------------------------------------------
358 typedef void (*le_cfg_ChangeHandlerFunc_t)
359 (
360  void* contextPtr
361 );
362 
363 //--------------------------------------------------------------------------------------------------
376 //--------------------------------------------------------------------------------------------------
377 le_cfg_IteratorRef_t le_cfg_CreateReadTxn
378 (
379  const char* basePath
382 );
383 
384 //--------------------------------------------------------------------------------------------------
399 //--------------------------------------------------------------------------------------------------
400 le_cfg_IteratorRef_t le_cfg_CreateWriteTxn
401 (
402  const char* basePath
405 );
406 
407 //--------------------------------------------------------------------------------------------------
414 //--------------------------------------------------------------------------------------------------
415 void le_cfg_CommitTxn
416 (
417  le_cfg_IteratorRef_t iteratorRef
420 );
421 
422 //--------------------------------------------------------------------------------------------------
429 //--------------------------------------------------------------------------------------------------
430 void le_cfg_CancelTxn
431 (
432  le_cfg_IteratorRef_t iteratorRef
435 );
436 
437 //--------------------------------------------------------------------------------------------------
446 //--------------------------------------------------------------------------------------------------
447 void le_cfg_GoToNode
448 (
449  le_cfg_IteratorRef_t iteratorRef,
452 
453  const char* newPath
456 );
457 
458 //--------------------------------------------------------------------------------------------------
467 //--------------------------------------------------------------------------------------------------
469 (
470  le_cfg_IteratorRef_t iteratorRef
473 );
474 
475 //--------------------------------------------------------------------------------------------------
489 //--------------------------------------------------------------------------------------------------
491 (
492  le_cfg_IteratorRef_t iteratorRef
495 );
496 
497 //--------------------------------------------------------------------------------------------------
518 //--------------------------------------------------------------------------------------------------
520 (
521  le_cfg_IteratorRef_t iteratorRef
524 );
525 
526 //--------------------------------------------------------------------------------------------------
556 //--------------------------------------------------------------------------------------------------
558 (
559  le_cfg_IteratorRef_t iteratorRef,
562 
563  const char* path,
567 
568  char* pathBuffer,
571 
572  size_t pathBufferNumElements
574 );
575 
576 //--------------------------------------------------------------------------------------------------
582 //--------------------------------------------------------------------------------------------------
584 (
585  le_cfg_IteratorRef_t iteratorRef,
588 
589  const char* path
593 );
594 
595 //--------------------------------------------------------------------------------------------------
602 //--------------------------------------------------------------------------------------------------
604 (
605  le_cfg_IteratorRef_t iteratorRef,
608 
609  const char* path,
613 
614  char* name,
617 
618  size_t nameNumElements
620 );
621 
622 //--------------------------------------------------------------------------------------------------
629 //--------------------------------------------------------------------------------------------------
631 (
632  const char* newPath,
635 
636  le_cfg_ChangeHandlerFunc_t handlerPtr,
638 
639  void* contextPtr
641 );
642 
643 //--------------------------------------------------------------------------------------------------
647 //--------------------------------------------------------------------------------------------------
649 (
650  le_cfg_ChangeHandlerRef_t addHandlerRef
652 );
653 
654 //--------------------------------------------------------------------------------------------------
663 //--------------------------------------------------------------------------------------------------
665 (
666  le_cfg_IteratorRef_t iteratorRef,
669 
670  const char* path
674 );
675 
676 //--------------------------------------------------------------------------------------------------
687 //--------------------------------------------------------------------------------------------------
688 bool le_cfg_IsEmpty
689 (
690  le_cfg_IteratorRef_t iteratorRef,
693 
694  const char* path
698 );
699 
700 //--------------------------------------------------------------------------------------------------
709 //--------------------------------------------------------------------------------------------------
710 void le_cfg_SetEmpty
711 (
712  le_cfg_IteratorRef_t iteratorRef,
715 
716  const char* path
720 );
721 
722 //--------------------------------------------------------------------------------------------------
728 //--------------------------------------------------------------------------------------------------
730 (
731  le_cfg_IteratorRef_t iteratorRef,
734 
735  const char* path
739 );
740 
741 //--------------------------------------------------------------------------------------------------
753 //--------------------------------------------------------------------------------------------------
755 (
756  le_cfg_IteratorRef_t iteratorRef,
759 
760  const char* path,
765 
766  char* value,
769 
770  size_t valueNumElements,
772 
773  const char* defaultValue
777 );
778 
779 //--------------------------------------------------------------------------------------------------
786 //--------------------------------------------------------------------------------------------------
787 void le_cfg_SetString
788 (
789  le_cfg_IteratorRef_t iteratorRef,
792 
793  const char* path,
797 
798  const char* value
801 );
802 
803 //--------------------------------------------------------------------------------------------------
816 //--------------------------------------------------------------------------------------------------
817 int32_t le_cfg_GetInt
818 (
819  le_cfg_IteratorRef_t iteratorRef,
822 
823  const char* path,
827 
828  int32_t defaultValue
832 );
833 
834 //--------------------------------------------------------------------------------------------------
841 //--------------------------------------------------------------------------------------------------
842 void le_cfg_SetInt
843 (
844  le_cfg_IteratorRef_t iteratorRef,
847 
848  const char* path,
852 
853  int32_t value
856 );
857 
858 //--------------------------------------------------------------------------------------------------
869 //--------------------------------------------------------------------------------------------------
870 double le_cfg_GetFloat
871 (
872  le_cfg_IteratorRef_t iteratorRef,
875 
876  const char* path,
880 
881  double defaultValue
885 );
886 
887 //--------------------------------------------------------------------------------------------------
896 //--------------------------------------------------------------------------------------------------
897 void le_cfg_SetFloat
898 (
899  le_cfg_IteratorRef_t iteratorRef,
902 
903  const char* path,
907 
908  double value
911 );
912 
913 //--------------------------------------------------------------------------------------------------
923 //--------------------------------------------------------------------------------------------------
924 bool le_cfg_GetBool
925 (
926  le_cfg_IteratorRef_t iteratorRef,
929 
930  const char* path,
934 
935  bool defaultValue
939 );
940 
941 //--------------------------------------------------------------------------------------------------
948 //--------------------------------------------------------------------------------------------------
949 void le_cfg_SetBool
950 (
951  le_cfg_IteratorRef_t iteratorRef,
954 
955  const char* path,
959 
960  bool value
963 );
964 
965 //--------------------------------------------------------------------------------------------------
970 //--------------------------------------------------------------------------------------------------
972 (
973  const char* path
976 );
977 
978 //--------------------------------------------------------------------------------------------------
983 //--------------------------------------------------------------------------------------------------
985 (
986  const char* path
989 );
990 
991 //--------------------------------------------------------------------------------------------------
999 //--------------------------------------------------------------------------------------------------
1001 (
1002  const char* path,
1005 
1006  char* value,
1009 
1010  size_t valueNumElements,
1012 
1013  const char* defaultValue
1016 );
1017 
1018 //--------------------------------------------------------------------------------------------------
1022 //--------------------------------------------------------------------------------------------------
1024 (
1025  const char* path,
1028 
1029  const char* value
1032 );
1033 
1034 //--------------------------------------------------------------------------------------------------
1042 //--------------------------------------------------------------------------------------------------
1043 int32_t le_cfg_QuickGetInt
1044 (
1045  const char* path,
1048 
1049  int32_t defaultValue
1052 );
1053 
1054 //--------------------------------------------------------------------------------------------------
1058 //--------------------------------------------------------------------------------------------------
1059 void le_cfg_QuickSetInt
1060 (
1061  const char* path,
1064 
1065  int32_t value
1068 );
1069 
1070 //--------------------------------------------------------------------------------------------------
1080 //--------------------------------------------------------------------------------------------------
1081 double le_cfg_QuickGetFloat
1082 (
1083  const char* path,
1086 
1087  double defaultValue
1090 );
1091 
1092 //--------------------------------------------------------------------------------------------------
1098 //--------------------------------------------------------------------------------------------------
1100 (
1101  const char* path,
1104 
1105  double value
1108 );
1109 
1110 //--------------------------------------------------------------------------------------------------
1117 //--------------------------------------------------------------------------------------------------
1119 (
1120  const char* path,
1123 
1124  bool defaultValue
1127 );
1128 
1129 //--------------------------------------------------------------------------------------------------
1133 //--------------------------------------------------------------------------------------------------
1135 (
1136  const char* path,
1139 
1140  bool value
1143 );
1144 
1145 
1146 #endif // LE_CFG_H_INCLUDE_GUARD
1147 
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_ChangeHandlerFunc_t)(void *contextPtr)
Definition: le_cfg_interface.h:359
le_result_t
Definition: le_basics.h:35
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