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 //--------------------------------------------------------------------------------------------------
269 //--------------------------------------------------------------------------------------------------
271 (
272  void
273 );
274 
275 //--------------------------------------------------------------------------------------------------
279 //--------------------------------------------------------------------------------------------------
281 (
282  void
283 );
284 
285 
286 //--------------------------------------------------------------------------------------------------
290 //--------------------------------------------------------------------------------------------------
291 typedef struct le_cfg_Iterator* le_cfg_IteratorRef_t;
292 
293 
294 //--------------------------------------------------------------------------------------------------
298 //--------------------------------------------------------------------------------------------------
299 typedef enum
300 {
303 
306 
309 
312 
315 
318 
321 }
323 
324 
325 //--------------------------------------------------------------------------------------------------
329 //--------------------------------------------------------------------------------------------------
330 #define LE_CFG_STR_LEN 511
331 
332 
333 //--------------------------------------------------------------------------------------------------
337 //--------------------------------------------------------------------------------------------------
338 #define LE_CFG_STR_LEN_BYTES 512
339 
340 
341 //--------------------------------------------------------------------------------------------------
345 //--------------------------------------------------------------------------------------------------
346 #define LE_CFG_NAME_LEN 63
347 
348 
349 //--------------------------------------------------------------------------------------------------
353 //--------------------------------------------------------------------------------------------------
354 #define LE_CFG_NAME_LEN_BYTES 64
355 
356 
357 //--------------------------------------------------------------------------------------------------
361 //--------------------------------------------------------------------------------------------------
362 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
363 
364 
365 //--------------------------------------------------------------------------------------------------
371 //--------------------------------------------------------------------------------------------------
372 typedef void (*le_cfg_ChangeHandlerFunc_t)
373 (
374  void* contextPtr
375 );
376 
377 //--------------------------------------------------------------------------------------------------
390 //--------------------------------------------------------------------------------------------------
392 (
393  const char* basePath
396 );
397 
398 //--------------------------------------------------------------------------------------------------
413 //--------------------------------------------------------------------------------------------------
415 (
416  const char* basePath
419 );
420 
421 //--------------------------------------------------------------------------------------------------
428 //--------------------------------------------------------------------------------------------------
429 void le_cfg_CommitTxn
430 (
431  le_cfg_IteratorRef_t iteratorRef
434 );
435 
436 //--------------------------------------------------------------------------------------------------
443 //--------------------------------------------------------------------------------------------------
444 void le_cfg_CancelTxn
445 (
446  le_cfg_IteratorRef_t iteratorRef
449 );
450 
451 //--------------------------------------------------------------------------------------------------
460 //--------------------------------------------------------------------------------------------------
461 void le_cfg_GoToNode
462 (
463  le_cfg_IteratorRef_t iteratorRef,
466 
467  const char* newPath
470 );
471 
472 //--------------------------------------------------------------------------------------------------
481 //--------------------------------------------------------------------------------------------------
483 (
484  le_cfg_IteratorRef_t iteratorRef
487 );
488 
489 //--------------------------------------------------------------------------------------------------
503 //--------------------------------------------------------------------------------------------------
505 (
506  le_cfg_IteratorRef_t iteratorRef
509 );
510 
511 //--------------------------------------------------------------------------------------------------
532 //--------------------------------------------------------------------------------------------------
534 (
535  le_cfg_IteratorRef_t iteratorRef
538 );
539 
540 //--------------------------------------------------------------------------------------------------
570 //--------------------------------------------------------------------------------------------------
572 (
573  le_cfg_IteratorRef_t iteratorRef,
576 
577  const char* path,
581 
582  char* pathBuffer,
585 
586  size_t pathBufferNumElements
588 );
589 
590 //--------------------------------------------------------------------------------------------------
596 //--------------------------------------------------------------------------------------------------
598 (
599  le_cfg_IteratorRef_t iteratorRef,
602 
603  const char* path
607 );
608 
609 //--------------------------------------------------------------------------------------------------
616 //--------------------------------------------------------------------------------------------------
618 (
619  le_cfg_IteratorRef_t iteratorRef,
622 
623  const char* path,
627 
628  char* name,
631 
632  size_t nameNumElements
634 );
635 
636 //--------------------------------------------------------------------------------------------------
643 //--------------------------------------------------------------------------------------------------
645 (
646  const char* newPath,
649 
650  le_cfg_ChangeHandlerFunc_t handlerPtr,
652 
653  void* contextPtr
655 );
656 
657 //--------------------------------------------------------------------------------------------------
661 //--------------------------------------------------------------------------------------------------
663 (
664  le_cfg_ChangeHandlerRef_t addHandlerRef
666 );
667 
668 //--------------------------------------------------------------------------------------------------
677 //--------------------------------------------------------------------------------------------------
679 (
680  le_cfg_IteratorRef_t iteratorRef,
683 
684  const char* path
688 );
689 
690 //--------------------------------------------------------------------------------------------------
701 //--------------------------------------------------------------------------------------------------
702 bool le_cfg_IsEmpty
703 (
704  le_cfg_IteratorRef_t iteratorRef,
707 
708  const char* path
712 );
713 
714 //--------------------------------------------------------------------------------------------------
723 //--------------------------------------------------------------------------------------------------
724 void le_cfg_SetEmpty
725 (
726  le_cfg_IteratorRef_t iteratorRef,
729 
730  const char* path
734 );
735 
736 //--------------------------------------------------------------------------------------------------
742 //--------------------------------------------------------------------------------------------------
744 (
745  le_cfg_IteratorRef_t iteratorRef,
748 
749  const char* path
753 );
754 
755 //--------------------------------------------------------------------------------------------------
767 //--------------------------------------------------------------------------------------------------
769 (
770  le_cfg_IteratorRef_t iteratorRef,
773 
774  const char* path,
779 
780  char* value,
783 
784  size_t valueNumElements,
786 
787  const char* defaultValue
791 );
792 
793 //--------------------------------------------------------------------------------------------------
800 //--------------------------------------------------------------------------------------------------
801 void le_cfg_SetString
802 (
803  le_cfg_IteratorRef_t iteratorRef,
806 
807  const char* path,
811 
812  const char* value
815 );
816 
817 //--------------------------------------------------------------------------------------------------
830 //--------------------------------------------------------------------------------------------------
831 int32_t le_cfg_GetInt
832 (
833  le_cfg_IteratorRef_t iteratorRef,
836 
837  const char* path,
841 
842  int32_t defaultValue
846 );
847 
848 //--------------------------------------------------------------------------------------------------
855 //--------------------------------------------------------------------------------------------------
856 void le_cfg_SetInt
857 (
858  le_cfg_IteratorRef_t iteratorRef,
861 
862  const char* path,
866 
867  int32_t value
870 );
871 
872 //--------------------------------------------------------------------------------------------------
883 //--------------------------------------------------------------------------------------------------
884 double le_cfg_GetFloat
885 (
886  le_cfg_IteratorRef_t iteratorRef,
889 
890  const char* path,
894 
895  double defaultValue
899 );
900 
901 //--------------------------------------------------------------------------------------------------
910 //--------------------------------------------------------------------------------------------------
911 void le_cfg_SetFloat
912 (
913  le_cfg_IteratorRef_t iteratorRef,
916 
917  const char* path,
921 
922  double value
925 );
926 
927 //--------------------------------------------------------------------------------------------------
937 //--------------------------------------------------------------------------------------------------
938 bool le_cfg_GetBool
939 (
940  le_cfg_IteratorRef_t iteratorRef,
943 
944  const char* path,
948 
949  bool defaultValue
953 );
954 
955 //--------------------------------------------------------------------------------------------------
962 //--------------------------------------------------------------------------------------------------
963 void le_cfg_SetBool
964 (
965  le_cfg_IteratorRef_t iteratorRef,
968 
969  const char* path,
973 
974  bool value
977 );
978 
979 //--------------------------------------------------------------------------------------------------
984 //--------------------------------------------------------------------------------------------------
986 (
987  const char* path
990 );
991 
992 //--------------------------------------------------------------------------------------------------
997 //--------------------------------------------------------------------------------------------------
999 (
1000  const char* path
1003 );
1004 
1005 //--------------------------------------------------------------------------------------------------
1013 //--------------------------------------------------------------------------------------------------
1015 (
1016  const char* path,
1019 
1020  char* value,
1023 
1024  size_t valueNumElements,
1026 
1027  const char* defaultValue
1030 );
1031 
1032 //--------------------------------------------------------------------------------------------------
1036 //--------------------------------------------------------------------------------------------------
1038 (
1039  const char* path,
1042 
1043  const char* value
1046 );
1047 
1048 //--------------------------------------------------------------------------------------------------
1056 //--------------------------------------------------------------------------------------------------
1057 int32_t le_cfg_QuickGetInt
1058 (
1059  const char* path,
1062 
1063  int32_t defaultValue
1066 );
1067 
1068 //--------------------------------------------------------------------------------------------------
1072 //--------------------------------------------------------------------------------------------------
1073 void le_cfg_QuickSetInt
1074 (
1075  const char* path,
1078 
1079  int32_t value
1082 );
1083 
1084 //--------------------------------------------------------------------------------------------------
1094 //--------------------------------------------------------------------------------------------------
1095 double le_cfg_QuickGetFloat
1096 (
1097  const char* path,
1100 
1101  double defaultValue
1104 );
1105 
1106 //--------------------------------------------------------------------------------------------------
1112 //--------------------------------------------------------------------------------------------------
1114 (
1115  const char* path,
1118 
1119  double value
1122 );
1123 
1124 //--------------------------------------------------------------------------------------------------
1131 //--------------------------------------------------------------------------------------------------
1133 (
1134  const char* path,
1137 
1138  bool defaultValue
1141 );
1142 
1143 //--------------------------------------------------------------------------------------------------
1147 //--------------------------------------------------------------------------------------------------
1149 (
1150  const char* path,
1153 
1154  bool value
1157 );
1158 
1159 
1160 #endif // LE_CFG_INTERFACE_H_INCLUDE_GUARD
1161 
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:313
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:362
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:291
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:301
double le_cfg_QuickGetFloat(const char *path, double defaultValue)
void le_cfg_ConnectService(void)
A string encoded as utf8.
Definition: le_cfg_interface.h:304
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:307
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:299
Node doesn't exist.
Definition: le_cfg_interface.h:319
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:373
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:310
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:316