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 
279 #ifndef LE_CFG_INTERFACE_H_INCLUDE_GUARD
280 #define LE_CFG_INTERFACE_H_INCLUDE_GUARD
281 
282 
283 #include "legato.h"
284 
285 // User customizable include file
286 #include "configTypes.h"
287 
288 
289 //--------------------------------------------------------------------------------------------------
293 //--------------------------------------------------------------------------------------------------
295 (
296  const char* serviceInstanceName
298 );
299 
300 //--------------------------------------------------------------------------------------------------
304 //--------------------------------------------------------------------------------------------------
306 (
307  void
308 );
309 
310 
311 //--------------------------------------------------------------------------------------------------
315 //--------------------------------------------------------------------------------------------------
316 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
317 
318 
319 //--------------------------------------------------------------------------------------------------
328 //--------------------------------------------------------------------------------------------------
329 typedef void (*le_cfg_ChangeHandlerFunc_t)
330 (
331  void* contextPtr
332 );
333 
334 //--------------------------------------------------------------------------------------------------
347 //--------------------------------------------------------------------------------------------------
348 le_cfg_IteratorRef_t le_cfg_CreateReadTxn
349 (
350  const char* basePath
353 );
354 
355 //--------------------------------------------------------------------------------------------------
370 //--------------------------------------------------------------------------------------------------
371 le_cfg_IteratorRef_t le_cfg_CreateWriteTxn
372 (
373  const char* basePath
376 );
377 
378 //--------------------------------------------------------------------------------------------------
385 //--------------------------------------------------------------------------------------------------
386 void le_cfg_CommitTxn
387 (
388  le_cfg_IteratorRef_t iteratorRef
391 );
392 
393 //--------------------------------------------------------------------------------------------------
400 //--------------------------------------------------------------------------------------------------
401 void le_cfg_CancelTxn
402 (
403  le_cfg_IteratorRef_t iteratorRef
406 );
407 
408 //--------------------------------------------------------------------------------------------------
416 //--------------------------------------------------------------------------------------------------
417 void le_cfg_GoToNode
418 (
419  le_cfg_IteratorRef_t iteratorRef,
422 
423  const char* newPath
426 );
427 
428 //--------------------------------------------------------------------------------------------------
437 //--------------------------------------------------------------------------------------------------
439 (
440  le_cfg_IteratorRef_t iteratorRef
443 );
444 
445 //--------------------------------------------------------------------------------------------------
459 //--------------------------------------------------------------------------------------------------
461 (
462  le_cfg_IteratorRef_t iteratorRef
465 );
466 
467 //--------------------------------------------------------------------------------------------------
488 //--------------------------------------------------------------------------------------------------
490 (
491  le_cfg_IteratorRef_t iteratorRef
494 );
495 
496 //--------------------------------------------------------------------------------------------------
526 //--------------------------------------------------------------------------------------------------
528 (
529  le_cfg_IteratorRef_t iteratorRef,
532 
533  const char* path,
537 
538  char* pathBuffer,
541 
542  size_t pathBufferNumElements
544 );
545 
546 //--------------------------------------------------------------------------------------------------
552 //--------------------------------------------------------------------------------------------------
553 le_cfg_nodeType_t le_cfg_GetNodeType
554 (
555  le_cfg_IteratorRef_t iteratorRef,
558 
559  const char* path
563 );
564 
565 //--------------------------------------------------------------------------------------------------
572 //--------------------------------------------------------------------------------------------------
574 (
575  le_cfg_IteratorRef_t iteratorRef,
578 
579  const char* path,
583 
584  char* name,
587 
588  size_t nameNumElements
590 );
591 
592 //--------------------------------------------------------------------------------------------------
603 //--------------------------------------------------------------------------------------------------
605 (
606  le_cfg_IteratorRef_t iteratorRef,
609 
610  const char* path,
614 
615  const char* name
618 );
619 
620 //--------------------------------------------------------------------------------------------------
624 //--------------------------------------------------------------------------------------------------
626 (
627  const char* newPath,
630 
631  le_cfg_ChangeHandlerFunc_t handlerPtr,
633 
634  void* contextPtr
636 );
637 
638 //--------------------------------------------------------------------------------------------------
642 //--------------------------------------------------------------------------------------------------
644 (
645  le_cfg_ChangeHandlerRef_t addHandlerRef
647 );
648 
649 //--------------------------------------------------------------------------------------------------
658 //--------------------------------------------------------------------------------------------------
660 (
661  le_cfg_IteratorRef_t iteratorRef,
664 
665  const char* path
669 );
670 
671 //--------------------------------------------------------------------------------------------------
682 //--------------------------------------------------------------------------------------------------
683 bool le_cfg_IsEmpty
684 (
685  le_cfg_IteratorRef_t iteratorRef,
688 
689  const char* path
693 );
694 
695 //--------------------------------------------------------------------------------------------------
704 //--------------------------------------------------------------------------------------------------
705 void le_cfg_SetEmpty
706 (
707  le_cfg_IteratorRef_t iteratorRef,
710 
711  const char* path
715 );
716 
717 //--------------------------------------------------------------------------------------------------
723 //--------------------------------------------------------------------------------------------------
725 (
726  le_cfg_IteratorRef_t iteratorRef,
729 
730  const char* path
734 );
735 
736 //--------------------------------------------------------------------------------------------------
748 //--------------------------------------------------------------------------------------------------
750 (
751  le_cfg_IteratorRef_t iteratorRef,
754 
755  const char* path,
760 
761  char* value,
764 
765  size_t valueNumElements,
767 
768  const char* defaultValue
772 );
773 
774 //--------------------------------------------------------------------------------------------------
781 //--------------------------------------------------------------------------------------------------
782 void le_cfg_SetString
783 (
784  le_cfg_IteratorRef_t iteratorRef,
787 
788  const char* path,
792 
793  const char* value
796 );
797 
798 //--------------------------------------------------------------------------------------------------
811 //--------------------------------------------------------------------------------------------------
812 int32_t le_cfg_GetInt
813 (
814  le_cfg_IteratorRef_t iteratorRef,
817 
818  const char* path,
822 
823  int32_t defaultValue
827 );
828 
829 //--------------------------------------------------------------------------------------------------
836 //--------------------------------------------------------------------------------------------------
837 void le_cfg_SetInt
838 (
839  le_cfg_IteratorRef_t iteratorRef,
842 
843  const char* path,
847 
848  int32_t value
851 );
852 
853 //--------------------------------------------------------------------------------------------------
862 //--------------------------------------------------------------------------------------------------
863 double le_cfg_GetFloat
864 (
865  le_cfg_IteratorRef_t iteratorRef,
868 
869  const char* path,
873 
874  double defaultValue
878 );
879 
880 //--------------------------------------------------------------------------------------------------
887 //--------------------------------------------------------------------------------------------------
888 void le_cfg_SetFloat
889 (
890  le_cfg_IteratorRef_t iteratorRef,
893 
894  const char* path,
898 
899  double value
902 );
903 
904 //--------------------------------------------------------------------------------------------------
914 //--------------------------------------------------------------------------------------------------
915 bool le_cfg_GetBool
916 (
917  le_cfg_IteratorRef_t iteratorRef,
920 
921  const char* path,
925 
926  bool defaultValue
930 );
931 
932 //--------------------------------------------------------------------------------------------------
939 //--------------------------------------------------------------------------------------------------
940 void le_cfg_SetBool
941 (
942  le_cfg_IteratorRef_t iteratorRef,
945 
946  const char* path,
950 
951  bool value
954 );
955 
956 //--------------------------------------------------------------------------------------------------
961 //--------------------------------------------------------------------------------------------------
963 (
964  const char* path
967 );
968 
969 //--------------------------------------------------------------------------------------------------
974 //--------------------------------------------------------------------------------------------------
976 (
977  const char* path
980 );
981 
982 //--------------------------------------------------------------------------------------------------
990 //--------------------------------------------------------------------------------------------------
992 (
993  const char* path,
996 
997  char* value,
1000 
1001  size_t valueNumElements,
1003 
1004  const char* defaultValue
1007 );
1008 
1009 //--------------------------------------------------------------------------------------------------
1013 //--------------------------------------------------------------------------------------------------
1015 (
1016  const char* path,
1019 
1020  const char* value
1023 );
1024 
1025 //--------------------------------------------------------------------------------------------------
1033 //--------------------------------------------------------------------------------------------------
1034 int32_t le_cfg_QuickGetInt
1035 (
1036  const char* path,
1039 
1040  int32_t defaultValue
1043 );
1044 
1045 //--------------------------------------------------------------------------------------------------
1049 //--------------------------------------------------------------------------------------------------
1050 void le_cfg_QuickSetInt
1051 (
1052  const char* path,
1055 
1056  int32_t value
1059 );
1060 
1061 //--------------------------------------------------------------------------------------------------
1069 //--------------------------------------------------------------------------------------------------
1070 double le_cfg_QuickGetFloat
1071 (
1072  const char* path,
1075 
1076  double defaultValue
1079 );
1080 
1081 //--------------------------------------------------------------------------------------------------
1085 //--------------------------------------------------------------------------------------------------
1087 (
1088  const char* path,
1091 
1092  double value
1095 );
1096 
1097 //--------------------------------------------------------------------------------------------------
1104 //--------------------------------------------------------------------------------------------------
1106 (
1107  const char* path,
1110 
1111  bool defaultValue
1114 );
1115 
1116 //--------------------------------------------------------------------------------------------------
1120 //--------------------------------------------------------------------------------------------------
1122 (
1123  const char* path,
1126 
1127  bool value
1130 );
1131 
1132 
1133 #endif // LE_CFG_INTERFACE_H_INCLUDE_GUARD
1134 
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:330
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)
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:316
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)
double le_cfg_QuickGetFloat(const char *path, double defaultValue)
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_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)
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)