blob: 3327c2e6de37e270205edc515289295dbd9ea564 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#ifndef PERSISTENCY_CLIENT_LIBRARY_H
#define PERSISTENCY_CLIENT_LIBRARY_H
/******************************************************************************
* Project Persistency
* (c) copyright 2011
* Company XS Embedded GmbH
*****************************************************************************/
/******************************************************************************
* This Source Code Form is subject to the terms of the
* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
* with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
******************************************************************************/
/**
* \file persistence_client_library_key.h
* \ingroup Persistence client library
* \author Ingo Huerner (XSe) / Guy Sagnes (Continental)
* \brief Header of the persistence client library.
* Library provides an API to access persistent data
* \par change history
* Date Author Version
* 25/06/13 Ingo Hürner 1.0.0 - Rework of Init functions
*
*/
/** \ingroup GEN_PERS */
/** \defgroup PERS_CLIENT Client: initialisation access
* \{
*/
/** \defgroup PERS_CLIENT_INTERFACE API document
* \{
*/
#ifdef __cplusplus
extern "C" {
#endif
/** \defgroup PCL_DEFINES_API Defines, Struct, Enum
* \{
*/
#define PERSIST_API_INTERFACE_VERSION (0x01010000U)
/** \} */
/** \defgroup PCL_OVERALL functions for Library Initialisation
* The following functions have to be called to allow intialisation of the internal interfaces.
* \{
*/
#define PCL_SHUTDOWN_TYPE_FAST 2 /// Client registered for fast lifecycle shutdown
#define PCL_SHUTDOWN_TYPE_NORMAL 1 /// Client registered for normal lifecycle shutdown
/**
* @brief initalize client library
*
* @attention This function is currently N O T part of the GENIVI compliance specification
*
* @param appname application name, the name must be a unique name in the system
* @param shutdownMode shutdown mode ::PCL_SHUTDOWN_TYPE_FAST or ::PCL_SHUTDOWN_TYPE_NORMAL
*
* @return positive value: success;
* On error a negative value will be returned with th follwoing error codes:
* ::EPERS_LOCKFS, ::EPERS_NOT_INITIALIZED
*/
int pclInitLibrary(const char* appname, int shutdownMode);
/**
* @brief deinitialize client library
*
* @attention This function is currently N O T part of the GENIVI compliance specification
*
* @return positive value: success;
* On error a negative value will be returned with th follwoing error codes: ::EPERS_LOCKFS
*/
int pclDeinitLibrary(void);
/** \} */
/** \} */ /* End of API */
/** \} */ /* End of MODULE */
#endif /* PERSISTENCY_CLIENT_LIBRARY_H */
|