diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2014-11-28 10:53:17 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2014-11-28 10:53:17 +0100 |
commit | 91b7686d94755190289cde6667f49bb7c34fa234 (patch) | |
tree | f67bcb1503276330842892a7bac62f4c3b52a00c /include | |
parent | 7fd1847eb1e25aef9c0a15a6358d6f3bbba99cf7 (diff) | |
download | persistence-client-library-91b7686d94755190289cde6667f49bb7c34fa234.tar.gz |
implemented write to configurable default data; added defines to pcl header for writing node and configurable default data
Diffstat (limited to 'include')
-rw-r--r-- | include/persistence_client_library.h | 66 |
1 files changed, 58 insertions, 8 deletions
diff --git a/include/persistence_client_library.h b/include/persistence_client_library.h index 1d42cbc..4fb1f4f 100644 --- a/include/persistence_client_library.h +++ b/include/persistence_client_library.h @@ -21,6 +21,9 @@ * Date Author Version * 25/06/13 Ingo Hürner 1.0.0 - Rework of Init functions * 04/11/13 Ingo Hürner 1.3.0 - Added define for shutdown type none + * 12/11/14 Guy Sagnes 1.4.0 - Add defines for accessing: + * - node data, configurable default + * - specific logical database (local, shared public) * */ /** \ingroup GEN_PERS */ @@ -94,11 +97,14 @@ extern "C" { #endif -/** \defgroup PCL_DEFINES_API Defines, Struct, Enum - * \{ +/** \defgroup PCL_VERSION_OVERALL library initialization IF Version + * \{ */ - -#define PERSIST_API_INTERFACE_VERSION (0x01030000U) +/** Module version : <genivi_major_version>.<genivi_minor_version>.<patch_version> + * The most significant 2 bytes indicate the original Genivi library initialization IF version (major and minor version). + * The rest of the bytes indicate the patch version created over the original Genivi version. +*/ +#define PERSIST_API_INTERFACE_VERSION (0x01040000U) /** \} */ @@ -143,17 +149,61 @@ extern "C" { /** \} */ -/** \defgroup PCL_OVERALL functions for Library initialization - * The following functions have to be called for library initialization +/** \defgroup PCL_USERDEF specific defines for user parameters + * The valid user value range: + * - 0: NODE data access + * - 1..max value: valid range for dedicated user + * - -1: user to access the configurable default value + * + * The following allows specific access to the data * \{ */ +#define PCL_USER_NODEDATA 0 /*!< user value to access the node value (user independent) */ +#define PCL_USER_DEFAULTDATA -1 /*!< user value to access directly the configurable default value */ + +/** \} */ + +/** \defgroup PCL_DBDEF specific defines for logical database parameters + * The valid user value range: + * - 0x00: shared public data + * - 0xFF: local data + * - 0x01..0x7F: shared group + * + * The following allows specific access to the data + * \{ + */ + +#define PCL_LDBID_LOCAL 0xFF /*!< value to access application local managed data */ +#define PCL_LDBID_PUBLIC 0x00 /*!< value to access public shared data, data is under control by the resource configuration in system */ + +/** \} */ + +/** \defgroup SHUTDOWN_EVENTS shutdown events definitions + * \{ + */ -/// trigger shutdown +/** + * + * @brief Shutdown event. + * Used with the pclLifecycleSet() function to inform PCL about the shutdown lifecycle state. + */ #define PCL_SHUTDOWN 1 -/// cancel shutdown + + +/** + * + * @brief Cancel shutdown event. + * Used with the pclLifecycleSet() function to inform PCL about the cancel shutdown lifecycle state. + */ #define PCL_SHUTDOWN_CANCEL 0 +/** \} */ + +/** \defgroup PCL_OVERALL functions for Library initialization + * The following functions have to be called for library initialization. + * \{ + */ /** * @brief initialize client library. |