interfaces/config/c/le_cfg_interface.h
Go to the documentation of this file.
00001 /*
00002  * ====================== WARNING ======================
00003  *
00004  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
00005  * DO NOT MODIFY IN ANY WAY.
00006  *
00007  * ====================== WARNING ======================
00008  */
00009 
00276 #ifndef LE_CFG_INTERFACE_H_INCLUDE_GUARD
00277 #define LE_CFG_INTERFACE_H_INCLUDE_GUARD
00278 
00279 
00280 #include "legato.h"
00281 
00282 // User customizable include file
00283 #include "configTypes.h"
00284 
00285 
00286 //--------------------------------------------------------------------------------------------------
00290 //--------------------------------------------------------------------------------------------------
00291 void le_cfg_StartClient
00292 (
00293     const char* serviceInstanceName
00295 );
00296 
00297 //--------------------------------------------------------------------------------------------------
00301 //--------------------------------------------------------------------------------------------------
00302 void le_cfg_StopClient
00303 (
00304     void
00305 );
00306 
00307 
00308 //--------------------------------------------------------------------------------------------------
00312 //--------------------------------------------------------------------------------------------------
00313 typedef struct le_cfg_ChangeHandler* le_cfg_ChangeHandlerRef_t;
00314 
00315 
00316 //--------------------------------------------------------------------------------------------------
00325 //--------------------------------------------------------------------------------------------------
00326 typedef void (*le_cfg_ChangeHandlerFunc_t)
00327 (
00328     void* contextPtr
00329 );
00330 
00331 //--------------------------------------------------------------------------------------------------
00344 //--------------------------------------------------------------------------------------------------
00345 le_cfg_IteratorRef_t le_cfg_CreateReadTxn
00346 (
00347     const char* basePath
00350 );
00351 
00352 //--------------------------------------------------------------------------------------------------
00367 //--------------------------------------------------------------------------------------------------
00368 le_cfg_IteratorRef_t le_cfg_CreateWriteTxn
00369 (
00370     const char* basePath
00373 );
00374 
00375 //--------------------------------------------------------------------------------------------------
00382 //--------------------------------------------------------------------------------------------------
00383 void le_cfg_CommitTxn
00384 (
00385     le_cfg_IteratorRef_t iteratorRef
00388 );
00389 
00390 //--------------------------------------------------------------------------------------------------
00397 //--------------------------------------------------------------------------------------------------
00398 void le_cfg_CancelTxn
00399 (
00400     le_cfg_IteratorRef_t iteratorRef
00403 );
00404 
00405 //--------------------------------------------------------------------------------------------------
00413 //--------------------------------------------------------------------------------------------------
00414 void le_cfg_GoToNode
00415 (
00416     le_cfg_IteratorRef_t iteratorRef,
00419 
00420     const char* newPath
00423 );
00424 
00425 //--------------------------------------------------------------------------------------------------
00434 //--------------------------------------------------------------------------------------------------
00435 le_result_t le_cfg_GoToParent
00436 (
00437     le_cfg_IteratorRef_t iteratorRef
00440 );
00441 
00442 //--------------------------------------------------------------------------------------------------
00456 //--------------------------------------------------------------------------------------------------
00457 le_result_t le_cfg_GoToFirstChild
00458 (
00459     le_cfg_IteratorRef_t iteratorRef
00462 );
00463 
00464 //--------------------------------------------------------------------------------------------------
00485 //--------------------------------------------------------------------------------------------------
00486 le_result_t le_cfg_GoToNextSibling
00487 (
00488     le_cfg_IteratorRef_t iteratorRef
00491 );
00492 
00493 //--------------------------------------------------------------------------------------------------
00523 //--------------------------------------------------------------------------------------------------
00524 le_result_t le_cfg_GetPath
00525 (
00526     le_cfg_IteratorRef_t iteratorRef,
00529 
00530     const char* path,
00534 
00535     char* pathBuffer,
00538 
00539     size_t pathBufferNumElements
00541 );
00542 
00543 //--------------------------------------------------------------------------------------------------
00549 //--------------------------------------------------------------------------------------------------
00550 le_cfg_nodeType_t le_cfg_GetNodeType
00551 (
00552     le_cfg_IteratorRef_t iteratorRef,
00555 
00556     const char* path
00560 );
00561 
00562 //--------------------------------------------------------------------------------------------------
00569 //--------------------------------------------------------------------------------------------------
00570 le_result_t le_cfg_GetNodeName
00571 (
00572     le_cfg_IteratorRef_t iteratorRef,
00575 
00576     const char* path,
00580 
00581     char* name,
00584 
00585     size_t nameNumElements
00587 );
00588 
00589 //--------------------------------------------------------------------------------------------------
00600 //--------------------------------------------------------------------------------------------------
00601 le_result_t le_cfg_SetNodeName
00602 (
00603     le_cfg_IteratorRef_t iteratorRef,
00606 
00607     const char* path,
00611 
00612     const char* name
00615 );
00616 
00617 //--------------------------------------------------------------------------------------------------
00621 //--------------------------------------------------------------------------------------------------
00622 le_cfg_ChangeHandlerRef_t le_cfg_AddChangeHandler
00623 (
00624     const char* newPath,
00627 
00628     le_cfg_ChangeHandlerFunc_t handlerPtr,
00630 
00631     void* contextPtr
00633 );
00634 
00635 //--------------------------------------------------------------------------------------------------
00639 //--------------------------------------------------------------------------------------------------
00640 void le_cfg_RemoveChangeHandler
00641 (
00642     le_cfg_ChangeHandlerRef_t addHandlerRef
00644 );
00645 
00646 //--------------------------------------------------------------------------------------------------
00655 //--------------------------------------------------------------------------------------------------
00656 void le_cfg_DeleteNode
00657 (
00658     le_cfg_IteratorRef_t iteratorRef,
00661 
00662     const char* path
00666 );
00667 
00668 //--------------------------------------------------------------------------------------------------
00679 //--------------------------------------------------------------------------------------------------
00680 bool le_cfg_IsEmpty
00681 (
00682     le_cfg_IteratorRef_t iteratorRef,
00685 
00686     const char* path
00690 );
00691 
00692 //--------------------------------------------------------------------------------------------------
00701 //--------------------------------------------------------------------------------------------------
00702 void le_cfg_SetEmpty
00703 (
00704     le_cfg_IteratorRef_t iteratorRef,
00707 
00708     const char* path
00712 );
00713 
00714 //--------------------------------------------------------------------------------------------------
00720 //--------------------------------------------------------------------------------------------------
00721 bool le_cfg_NodeExists
00722 (
00723     le_cfg_IteratorRef_t iteratorRef,
00726 
00727     const char* path
00731 );
00732 
00733 //--------------------------------------------------------------------------------------------------
00745 //--------------------------------------------------------------------------------------------------
00746 le_result_t le_cfg_GetString
00747 (
00748     le_cfg_IteratorRef_t iteratorRef,
00751 
00752     const char* path,
00757 
00758     char* value,
00761 
00762     size_t valueNumElements,
00764 
00765     const char* defaultValue
00769 );
00770 
00771 //--------------------------------------------------------------------------------------------------
00778 //--------------------------------------------------------------------------------------------------
00779 void le_cfg_SetString
00780 (
00781     le_cfg_IteratorRef_t iteratorRef,
00784 
00785     const char* path,
00789 
00790     const char* value
00793 );
00794 
00795 //--------------------------------------------------------------------------------------------------
00808 //--------------------------------------------------------------------------------------------------
00809 int32_t le_cfg_GetInt
00810 (
00811     le_cfg_IteratorRef_t iteratorRef,
00814 
00815     const char* path,
00819 
00820     int32_t defaultValue
00824 );
00825 
00826 //--------------------------------------------------------------------------------------------------
00833 //--------------------------------------------------------------------------------------------------
00834 void le_cfg_SetInt
00835 (
00836     le_cfg_IteratorRef_t iteratorRef,
00839 
00840     const char* path,
00844 
00845     int32_t value
00848 );
00849 
00850 //--------------------------------------------------------------------------------------------------
00859 //--------------------------------------------------------------------------------------------------
00860 double le_cfg_GetFloat
00861 (
00862     le_cfg_IteratorRef_t iteratorRef,
00865 
00866     const char* path,
00870 
00871     double defaultValue
00875 );
00876 
00877 //--------------------------------------------------------------------------------------------------
00884 //--------------------------------------------------------------------------------------------------
00885 void le_cfg_SetFloat
00886 (
00887     le_cfg_IteratorRef_t iteratorRef,
00890 
00891     const char* path,
00895 
00896     double value
00899 );
00900 
00901 //--------------------------------------------------------------------------------------------------
00911 //--------------------------------------------------------------------------------------------------
00912 bool le_cfg_GetBool
00913 (
00914     le_cfg_IteratorRef_t iteratorRef,
00917 
00918     const char* path,
00922 
00923     bool defaultValue
00927 );
00928 
00929 //--------------------------------------------------------------------------------------------------
00936 //--------------------------------------------------------------------------------------------------
00937 void le_cfg_SetBool
00938 (
00939     le_cfg_IteratorRef_t iteratorRef,
00942 
00943     const char* path,
00947 
00948     bool value
00951 );
00952 
00953 //--------------------------------------------------------------------------------------------------
00958 //--------------------------------------------------------------------------------------------------
00959 void le_cfg_QuickDeleteNode
00960 (
00961     const char* path
00964 );
00965 
00966 //--------------------------------------------------------------------------------------------------
00971 //--------------------------------------------------------------------------------------------------
00972 void le_cfg_QuickSetEmpty
00973 (
00974     const char* path
00977 );
00978 
00979 //--------------------------------------------------------------------------------------------------
00987 //--------------------------------------------------------------------------------------------------
00988 le_result_t le_cfg_QuickGetString
00989 (
00990     const char* path,
00993 
00994     char* value,
00997 
00998     size_t valueNumElements,
01000 
01001     const char* defaultValue
01004 );
01005 
01006 //--------------------------------------------------------------------------------------------------
01010 //--------------------------------------------------------------------------------------------------
01011 void le_cfg_QuickSetString
01012 (
01013     const char* path,
01016 
01017     const char* value
01020 );
01021 
01022 //--------------------------------------------------------------------------------------------------
01030 //--------------------------------------------------------------------------------------------------
01031 int32_t le_cfg_QuickGetInt
01032 (
01033     const char* path,
01036 
01037     int32_t defaultValue
01040 );
01041 
01042 //--------------------------------------------------------------------------------------------------
01046 //--------------------------------------------------------------------------------------------------
01047 void le_cfg_QuickSetInt
01048 (
01049     const char* path,
01052 
01053     int32_t value
01056 );
01057 
01058 //--------------------------------------------------------------------------------------------------
01066 //--------------------------------------------------------------------------------------------------
01067 double le_cfg_QuickGetFloat
01068 (
01069     const char* path,
01072 
01073     double defaultValue
01076 );
01077 
01078 //--------------------------------------------------------------------------------------------------
01082 //--------------------------------------------------------------------------------------------------
01083 void le_cfg_QuickSetFloat
01084 (
01085     const char* path,
01088 
01089     double value
01092 );
01093 
01094 //--------------------------------------------------------------------------------------------------
01101 //--------------------------------------------------------------------------------------------------
01102 bool le_cfg_QuickGetBool
01103 (
01104     const char* path,
01107 
01108     bool defaultValue
01111 );
01112 
01113 //--------------------------------------------------------------------------------------------------
01117 //--------------------------------------------------------------------------------------------------
01118 void le_cfg_QuickSetBool
01119 (
01120     const char* path,
01123 
01124     bool value
01127 );
01128 
01129 
01130 #endif // LE_CFG_INTERFACE_H_INCLUDE_GUARD
01131 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines