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 
259 #ifndef LE_CFG_INTERFACE_H_INCLUDE_GUARD
260 #define LE_CFG_INTERFACE_H_INCLUDE_GUARD
261 
262 
263 #include "legato.h"
264 
265 //--------------------------------------------------------------------------------------------------
276 //--------------------------------------------------------------------------------------------------
278 (
279  void
280 );
281 
282 //--------------------------------------------------------------------------------------------------
293 //--------------------------------------------------------------------------------------------------
295 (
296  void
297 );
298 
299 
300 //--------------------------------------------------------------------------------------------------
304 //--------------------------------------------------------------------------------------------------
305 typedef struct le_cfg_Iterator* le_cfg_IteratorRef_t;
306 
307 
308 //--------------------------------------------------------------------------------------------------
312 //--------------------------------------------------------------------------------------------------
313 typedef enum
314 {
317 
320 
323 
326 
329 
332 
335 }
337 
338 
339 //--------------------------------------------------------------------------------------------------
343 //--------------------------------------------------------------------------------------------------
344 #define LE_CFG_STR_LEN 511
345 
346 
347 //--------------------------------------------------------------------------------------------------
351 //--------------------------------------------------------------------------------------------------
352 #define LE_CFG_STR_LEN_BYTES 512
353 
354 
355 //--------------------------------------------------------------------------------------------------
359 //--------------------------------------------------------------------------------------------------
360 #define LE_CFG_NAME_LEN 63
361 
362 
363 //--------------------------------------------------------------------------------------------------
367 //--------------------------------------------------------------------------------------------------
368 #define LE_CFG_NAME_LEN_BYTES 64
369 
370 
371 //--------------------------------------------------------------------------------------------------
375 //--------------------------------------------------------------------------------------------------
376 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
377 
378 
379 //--------------------------------------------------------------------------------------------------
385 //--------------------------------------------------------------------------------------------------
386 typedef void (*le_cfg_ChangeHandlerFunc_t)
387 (
388  void* contextPtr
389 );
390 
391 //--------------------------------------------------------------------------------------------------
404 //--------------------------------------------------------------------------------------------------
406 (
407  const char* basePath
410 );
411 
412 //--------------------------------------------------------------------------------------------------
427 //--------------------------------------------------------------------------------------------------
429 (
430  const char* basePath
433 );
434 
435 //--------------------------------------------------------------------------------------------------
442 //--------------------------------------------------------------------------------------------------
443 void le_cfg_CommitTxn
444 (
445  le_cfg_IteratorRef_t iteratorRef
448 );
449 
450 //--------------------------------------------------------------------------------------------------
457 //--------------------------------------------------------------------------------------------------
458 void le_cfg_CancelTxn
459 (
460  le_cfg_IteratorRef_t iteratorRef
463 );
464 
465 //--------------------------------------------------------------------------------------------------
474 //--------------------------------------------------------------------------------------------------
475 void le_cfg_GoToNode
476 (
477  le_cfg_IteratorRef_t iteratorRef,
480 
481  const char* newPath
484 );
485 
486 //--------------------------------------------------------------------------------------------------
495 //--------------------------------------------------------------------------------------------------
497 (
498  le_cfg_IteratorRef_t iteratorRef
501 );
502 
503 //--------------------------------------------------------------------------------------------------
517 //--------------------------------------------------------------------------------------------------
519 (
520  le_cfg_IteratorRef_t iteratorRef
523 );
524 
525 //--------------------------------------------------------------------------------------------------
546 //--------------------------------------------------------------------------------------------------
548 (
549  le_cfg_IteratorRef_t iteratorRef
552 );
553 
554 //--------------------------------------------------------------------------------------------------
584 //--------------------------------------------------------------------------------------------------
586 (
587  le_cfg_IteratorRef_t iteratorRef,
590 
591  const char* path,
595 
596  char* pathBuffer,
599 
600  size_t pathBufferNumElements
602 );
603 
604 //--------------------------------------------------------------------------------------------------
610 //--------------------------------------------------------------------------------------------------
612 (
613  le_cfg_IteratorRef_t iteratorRef,
616 
617  const char* path
621 );
622 
623 //--------------------------------------------------------------------------------------------------
630 //--------------------------------------------------------------------------------------------------
632 (
633  le_cfg_IteratorRef_t iteratorRef,
636 
637  const char* path,
641 
642  char* name,
645 
646  size_t nameNumElements
648 );
649 
650 //--------------------------------------------------------------------------------------------------
657 //--------------------------------------------------------------------------------------------------
659 (
660  const char* newPath,
663 
664  le_cfg_ChangeHandlerFunc_t handlerPtr,
666 
667  void* contextPtr
669 );
670 
671 //--------------------------------------------------------------------------------------------------
675 //--------------------------------------------------------------------------------------------------
677 (
678  le_cfg_ChangeHandlerRef_t addHandlerRef
680 );
681 
682 //--------------------------------------------------------------------------------------------------
691 //--------------------------------------------------------------------------------------------------
693 (
694  le_cfg_IteratorRef_t iteratorRef,
697 
698  const char* path
702 );
703 
704 //--------------------------------------------------------------------------------------------------
715 //--------------------------------------------------------------------------------------------------
716 bool le_cfg_IsEmpty
717 (
718  le_cfg_IteratorRef_t iteratorRef,
721 
722  const char* path
726 );
727 
728 //--------------------------------------------------------------------------------------------------
737 //--------------------------------------------------------------------------------------------------
738 void le_cfg_SetEmpty
739 (
740  le_cfg_IteratorRef_t iteratorRef,
743 
744  const char* path
748 );
749 
750 //--------------------------------------------------------------------------------------------------
756 //--------------------------------------------------------------------------------------------------
758 (
759  le_cfg_IteratorRef_t iteratorRef,
762 
763  const char* path
767 );
768 
769 //--------------------------------------------------------------------------------------------------
781 //--------------------------------------------------------------------------------------------------
783 (
784  le_cfg_IteratorRef_t iteratorRef,
787 
788  const char* path,
793 
794  char* value,
797 
798  size_t valueNumElements,
800 
801  const char* defaultValue
805 );
806 
807 //--------------------------------------------------------------------------------------------------
814 //--------------------------------------------------------------------------------------------------
815 void le_cfg_SetString
816 (
817  le_cfg_IteratorRef_t iteratorRef,
820 
821  const char* path,
825 
826  const char* value
829 );
830 
831 //--------------------------------------------------------------------------------------------------
844 //--------------------------------------------------------------------------------------------------
845 int32_t le_cfg_GetInt
846 (
847  le_cfg_IteratorRef_t iteratorRef,
850 
851  const char* path,
855 
856  int32_t defaultValue
860 );
861 
862 //--------------------------------------------------------------------------------------------------
869 //--------------------------------------------------------------------------------------------------
870 void le_cfg_SetInt
871 (
872  le_cfg_IteratorRef_t iteratorRef,
875 
876  const char* path,
880 
881  int32_t value
884 );
885 
886 //--------------------------------------------------------------------------------------------------
897 //--------------------------------------------------------------------------------------------------
898 double le_cfg_GetFloat
899 (
900  le_cfg_IteratorRef_t iteratorRef,
903 
904  const char* path,
908 
909  double defaultValue
913 );
914 
915 //--------------------------------------------------------------------------------------------------
924 //--------------------------------------------------------------------------------------------------
925 void le_cfg_SetFloat
926 (
927  le_cfg_IteratorRef_t iteratorRef,
930 
931  const char* path,
935 
936  double value
939 );
940 
941 //--------------------------------------------------------------------------------------------------
951 //--------------------------------------------------------------------------------------------------
952 bool le_cfg_GetBool
953 (
954  le_cfg_IteratorRef_t iteratorRef,
957 
958  const char* path,
962 
963  bool defaultValue
967 );
968 
969 //--------------------------------------------------------------------------------------------------
976 //--------------------------------------------------------------------------------------------------
977 void le_cfg_SetBool
978 (
979  le_cfg_IteratorRef_t iteratorRef,
982 
983  const char* path,
987 
988  bool value
991 );
992 
993 //--------------------------------------------------------------------------------------------------
998 //--------------------------------------------------------------------------------------------------
1000 (
1001  const char* path
1004 );
1005 
1006 //--------------------------------------------------------------------------------------------------
1011 //--------------------------------------------------------------------------------------------------
1013 (
1014  const char* path
1017 );
1018 
1019 //--------------------------------------------------------------------------------------------------
1027 //--------------------------------------------------------------------------------------------------
1029 (
1030  const char* path,
1033 
1034  char* value,
1037 
1038  size_t valueNumElements,
1040 
1041  const char* defaultValue
1044 );
1045 
1046 //--------------------------------------------------------------------------------------------------
1050 //--------------------------------------------------------------------------------------------------
1052 (
1053  const char* path,
1056 
1057  const char* value
1060 );
1061 
1062 //--------------------------------------------------------------------------------------------------
1070 //--------------------------------------------------------------------------------------------------
1071 int32_t le_cfg_QuickGetInt
1072 (
1073  const char* path,
1076 
1077  int32_t defaultValue
1080 );
1081 
1082 //--------------------------------------------------------------------------------------------------
1086 //--------------------------------------------------------------------------------------------------
1087 void le_cfg_QuickSetInt
1088 (
1089  const char* path,
1092 
1093  int32_t value
1096 );
1097 
1098 //--------------------------------------------------------------------------------------------------
1108 //--------------------------------------------------------------------------------------------------
1109 double le_cfg_QuickGetFloat
1110 (
1111  const char* path,
1114 
1115  double defaultValue
1118 );
1119 
1120 //--------------------------------------------------------------------------------------------------
1126 //--------------------------------------------------------------------------------------------------
1128 (
1129  const char* path,
1132 
1133  double value
1136 );
1137 
1138 //--------------------------------------------------------------------------------------------------
1145 //--------------------------------------------------------------------------------------------------
1147 (
1148  const char* path,
1151 
1152  bool defaultValue
1155 );
1156 
1157 //--------------------------------------------------------------------------------------------------
1161 //--------------------------------------------------------------------------------------------------
1163 (
1164  const char* path,
1167 
1168  bool value
1171 );
1172 
1173 
1174 #endif // LE_CFG_INTERFACE_H_INCLUDE_GUARD
1175 
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)
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:327
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:376
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)
struct le_cfg_Iterator * le_cfg_IteratorRef_t
Definition: le_cfg_interface.h:305
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:315
double le_cfg_QuickGetFloat(const char *path, double defaultValue)
void le_cfg_ConnectService(void)
A string encoded as utf8.
Definition: le_cfg_interface.h:318
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:321
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:313
Node doesn't exist.
Definition: le_cfg_interface.h:333
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_ChangeHandlerFunc_t)(void *contextPtr)
Definition: le_cfg_interface.h:387
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:324
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:330