Changed file and key-value API according GENIVI naming conventions
[profile/ivi/persistence-client-library.git] / src / persistence_client_library_itzam_errors.h
1 #ifndef PERSISTENCE_CLIENT_ITZAM_ERRORS_H
2 #define PERSISTENCE_CLIENT_ITZAM_ERRORS_H
3
4 /*
5     Itzam/C (version 6.0) is an embedded database engine written in Standard C.
6
7     Copyright 2011 Scott Robert Ladd. All rights reserved.
8
9     Older versions of Itzam/C are:
10         Copyright 2002, 2004, 2006, 2008 Scott Robert Ladd. All rights reserved.
11
12     Ancestral code, from Java and C++ books by the author, is:
13         Copyright 1992, 1994, 1996, 2001 Scott Robert Ladd.  All rights reserved.
14
15     Itzam/C is user-supported open source software. It's continued development is dependent on
16     financial support from the community. You can provide funding by visiting the Itzam/C
17     website at:
18
19         http://www.coyotegulch.com
20
21     You may license Itzam/C in one of two fashions:
22
23     1) Simplified BSD License (FreeBSD License)
24
25     Redistribution and use in source and binary forms, with or without modification, are
26     permitted provided that the following conditions are met:
27
28     1.  Redistributions of source code must retain the above copyright notice, this list of
29         conditions and the following disclaimer.
30
31     2.  Redistributions in binary form must reproduce the above copyright notice, this list
32         of conditions and the following disclaimer in the documentation and/or other materials
33         provided with the distribution.
34
35     THIS SOFTWARE IS PROVIDED BY SCOTT ROBERT LADD ``AS IS'' AND ANY EXPRESS OR IMPLIED
36     WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
37     FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SCOTT ROBERT LADD OR
38     CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
39     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
40     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
41     ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
42     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
43     ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
45     The views and conclusions contained in the software and documentation are those of the
46     authors and should not be interpreted as representing official policies, either expressed
47     or implied, of Scott Robert Ladd.
48
49     2) Closed-Source Proprietary License
50
51     If your project is a closed-source or proprietary project, the Simplified BSD License may
52     not be appropriate or desirable. In such cases, contact the Itzam copyright holder to
53     arrange your purchase of an appropriate license.
54
55     The author can be contacted at:
56
57           scott.ladd@coyotegulch.com
58           scott.ladd@gmail.com
59           http:www.coyotegulch.com
60 */
61
62 /******************************************************************************
63  * Project         Persistency
64  * (c) copyright   2012
65  * Company         XS Embedded GmbH
66  *****************************************************************************/
67 /******************************************************************************
68 Small changes to use in persistence
69 ******************************************************************************/
70  /**
71  * @file           persistence_client_itzam_errors.h
72  * @ingroup        Persistence client library
73  * @author         Ingo Huerner
74  * @brief          Itzam database error definnitions
75  * @see
76  */
77
78 #include <itzam.h>
79
80 /// error string messages definition
81 extern const char * ERROR_STRINGS [];
82
83 /// error state messages definition
84 extern const char * STATE_MESSAGES [];
85
86 /// error handler
87 void error_handler(const char * function_name, itzam_error error);
88
89
90 #endif /* PERSISTENCE_CLIENT_ITZAM_ERRORS_H */