Renamed and moved files, fixed problem with handle test
[profile/ivi/persistence-client-library.git] / src / persistence_client_library_data_organization.c
1 /******************************************************************************
2  * Project         Persistency
3  * (c) copyright   2012
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 ******************************************************************************/
11  /**
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
16  * @see            
17  */
18
19 #include "../include_protected/persistence_client_library_data_organization.h"
20
21 #include <string.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24
25 const char* gResTableCfg = "/resource-table-cfg.itz";
26
27
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";
36
37
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";
46
47
48
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/";
55
56
57 /// path prefic for local cached database: /Data/mnt_c/<appId>/<database_name>
58 const char* gLocalCachePath        = "/Data/mnt-c/%s%s";
59 /// path prefic for local write through database /Data/mnt_wt/<appId>/<database_name>
60 const char* gLocalWtPath           = "/Data/mnt-wt/%s%s";
61 /// path prefic 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 prefic 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";
65
66 /// path prefic for shared public cached database: /Data/mnt_c/Shared/Public//<database_name>
67 const char* gSharedPublicCachePath = "/Data/mnt-c/%s/Shared_Public%s";
68
69 /// path prefic for shared public write through database: /Data/mnt_wt/Shared/Public/<database_name>
70 const char* gSharedPublicWtPath    = "/Data/mnt-wt/%s/Shared_Public%s";
71
72
73 /// application id
74 char gAppId[MaxAppNameLen];
75
76 /// max key value data size [default 16kB]
77 int gMaxKeyValDataSize = defaultMaxKeyValDataSize;
78
79
80
81
82