OpenClovis Logo

clDbalCfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : dbal
21  * File : clDbalCfg.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  * DBAL Component configuration module
27  ********************************************************************************/
28 
29 
30 /********************************************************************************/
31 /******************************** DBAL APIs ************************************/
32 /********************************************************************************/
33 /* */
34 /* clDbalLibInitialize */
35 /* clDbalLibFinalize */
36 /* */
37 /********************************************************************************/
38 
50 #ifndef _DBALCOMPCFG_H_
51 #define _DBALCOMPCFG_H_
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 /* GLOBALs */
58 
59 /* Berkeley DB environment path */
60 #define CL_DBAL_BERKELEY_ENV_PATH ""
61 
62 /* SQLite DB path */
63 #define CL_DBAL_SQLITE_DB_PATH ""
64 
65 typedef struct ClDbalBerkeleyConfT {
66 
70  ClUint8T engineEnvironmentPath[1024];
71 }ClDbalBerkeleyConfT;
72 
73 typedef struct ClDbalSQLiteConfT {
74 
75  /* Path where the database files are to be stored. */
76  ClUint8T enginePath[1024];
77 }ClDbalSQLiteConfT;
78 
79 typedef struct ClDbalConfigT {
80  ClUint32T engineType;
81  union {
82  ClDbalBerkeleyConfT berkeleyConfig;
83  ClDbalSQLiteConfT sqliteConfig;
84  }Database ;
85 }ClDbalConfigT;
86 
87 
143 
144 
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif
151 
152 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen