1 #ifndef PERSISTENCE_CLIENT_LIBRARY_ERROR_DEF_H
2 #define PERSISTENCE_CLIENT_LIBRARY_ERROR_DEF_H
4 /******************************************************************************
7 * Company XS Embedded GmbH
8 *****************************************************************************/
9 /******************************************************************************
10 * This Source Code Form is subject to the terms of the
11 * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
12 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 ******************************************************************************/
15 * @file persistence_client_library_error_def.h
16 * @ingroup Persistence client library
17 * @author Ingo Huerner
18 * @brief Error definition header
26 // common error, for this error errno will be set
27 #define EPERS_COMMON (-1)
28 /// file system is locked
29 #define EPERS_LOCKFS (-2)
30 /// filesystem is currently locked
31 #define EPERS_MAP_LOCKFS ((void *) -2)
32 /// bad storage policy
33 #define EPERS_BADPOL (-3)
34 /// open handle limit reached
35 #define EPERS_MAXHANDLE (-4)
36 /// max buffer limit for persistence data
37 #define EPERS_BUFLIMIT (-5)
38 /// persistence resource configuration table not found
39 #define EPERS_NOPRCTABLE (-6)
41 #define EPERS_NOKEY (-7)
43 #define EPERS_NOKEYDATA (-8)
44 /// write of data failed
45 #define EPERS_SETDTAFAILED (-9)
46 /// failed to open file
47 #define EPERS_OPENFILE (-10)
48 /// invalid buffer or key
49 #define EPERS_DESER_BUFORKEY (-11)
50 /// can't allocat memory for deserialization of keyvalue
51 #define EPERS_DESER_ALLOCMEM (-12)
52 /// no ploicy avaliable in data to serialize
53 #define EPERS_DESER_POLICY (-13)
54 /// no store type avaliable in data to serialize
55 #define EPERS_DESER_STORE (-14)
56 /// no permission avaliable in data to serialize
57 #define EPERS_DESER_PERM (-15)
58 /// no max size avaliable in data to serialize
59 #define EPERS_DESER_MAXSIZE (-16)
60 /// no responsibility avaliable in data to serialize
61 #define EPERS_DESER_RESP (-17)
62 /// out of array bounds
63 #define EPERS_OUTOFBOUNDS (-18)
64 /// failed to map config file
65 #define EPERS_CONFIGMAPFAILED (-19)
66 /// config file if not available
67 #define EPERS_CONFIGNOTAVAILABLE (-20)
68 /// can't stat config file
69 #define EPERS_CONFIGNOSTAT (-21)
70 /// plugin functin not found
71 #define EPERS_NOPLUGINFCNT (-22)
73 #define EPERS_DLOPENERROR (-23)
74 /// plugin function not loaded
75 #define EPERS_NOPLUGINFUNCT (-24)
77 #define EPERS_FILEREMOVE (-25)
78 /// err code to signalize last entry in DB
79 #define EPERS_LAST_ENTRY_IN_DB (-26)
80 /// internal database error
81 #define EPERS_DB_ERROR_INTERNAL (-27)
82 /// db key size is to long
83 #define EPERS_DB_KEY_SIZE (-28)
84 /// db value size is to long
85 #define EPERS_DB_VALUE_SIZE (-29)
89 * @brief Main dispatching loop
93 void* dbus_main_dispatching_loop(void* dataPtr);
99 #endif /* PERSISTENCE_CLIENT_LIBRARY_ERROR_DEF_H */