1 /******************************************************************************
4 * Company XS Embedded GmbH
5 *****************************************************************************/
6 /******************************************************************************
7 * This Source Code Form is subject to the terms of the
8 * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
9 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 ******************************************************************************/
12 * @file persistence_client_library_data_organization.c
13 * @ingroup Persistence client library
14 * @author Ingo Huerner
15 * @brief Implementation of persistence database low level access
19 #include "../include_protected/persistence_client_library_data_organization.h"
25 const char* gResTableCfg = "/resource-table-cfg.itz";
28 /// shared cached default database
29 const char* gSharedCachedDefault = "/cached-default.itz";
30 /// shared cached database
31 const char* gSharedCached = "/cached.itz";
32 /// shared write through default database
33 const char* gSharedWtDefault = "/wt-default.itz";
34 /// shared write through database
35 const char* gSharedWt = "/wt.itz";
38 /// local cached default database
39 const char* gLocalCachedDefault = "cached-default.itz";
40 /// local cached default database
41 const char* gLocalCached = "/cached.itz";
42 /// local write through default database
43 const char* gLocalWtDefault = "wt-default.itz";
44 /// local write through default database
45 const char* gLocalWt = "/wt.itz";
49 /// directory structure node name defintion
50 const char* gNode = "/node";
51 /// directory structure user name defintion
52 const char* gUser = "/user/";
53 /// directory structure seat name defintion
54 const char* gSeat = "/seat/";
57 /// path prefix for local cached database: /Data/mnt_c/<appId>/<database_name>
58 const char* gLocalCachePath = "/Data/mnt-c/%s%s";
59 /// path prefix for local write through database /Data/mnt_wt/<appId>/<database_name>
60 const char* gLocalWtPath = "/Data/mnt-wt/%s%s";
61 /// path prefix for shared cached database: /Data/mnt_c/Shared/Group/<group_no>/<database_name>
62 const char* gSharedCachePath = "/Data/mnt-c/%s/Shared_Group_%x%s";
63 /// path prefix for shared write through database: /Data/mnt_wt/Shared/Group/<group_no>/<database_name>
64 const char* gSharedWtPath = "/Data/mnt-wt/%s/Shared_Group_%x%s";
66 /// path prefix for shared public cached database: /Data/mnt_c/Shared/Public//<database_name>
67 const char* gSharedPublicCachePath = "/Data/mnt-c/%s/Shared_Public%s";
69 /// path prefix for shared public write through database: /Data/mnt_wt/Shared/Public/<database_name>
70 const char* gSharedPublicWtPath = "/Data/mnt-wt/%s/Shared_Public%s";
73 /// path prefix for local cached files: /Data/mnt_c/<appId>/<user>/<seat>/<resource>
74 const char* gLocalCacheFilePath = "/Data/mnt-c/%s/user/%d/seat/%d/%s";
77 char gAppId[MaxAppNameLen];
79 /// max key value data size [default 16kB]
80 int gMaxKeyValDataSize = defaultMaxKeyValDataSize;
83 DltContext gDLTContext;
85 int(* gChangeNotifyCallback)(pclNotification_s * notifyStruct);