* Company XS Embedded GmbH
*****************************************************************************/
/******************************************************************************
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the "Software"),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
- OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * This Source Code Form is subject to the terms of the
+ * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
+ * with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
******************************************************************************/
/**
* @file persistence_client_library_error_def.h
* @brief Error definition header
* @see
*/
+/** \ingroup GEN_PERS */
+/** \defgroup PERS_GEN_ERROR Client Library: Generic errors
+ * \{
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
// common error, for this error errno will be set
#define EPERS_COMMON (-1)
#define EPERS_FILEREMOVE (-25)
/// err code to signalize last entry in DB
#define EPERS_LAST_ENTRY_IN_DB (-26)
+/// internal database error
+#define EPERS_DB_ERROR_INTERNAL (-27)
+/// db key size is to long
+#define EPERS_DB_KEY_SIZE (-28)
+/// db value size is to long
+#define EPERS_DB_VALUE_SIZE (-29)
+/// resource is not a key
+#define EPERS_RES_NO_KEY (-30)
+/// change notification signal could ne be sent
+#define EPERS_NOTIFY_SIG (-31)
+/// client library has not been initialized
+#define EPERS_NOT_INITIALIZED (-32)
+// max buffer size
+#define EPERS_MAX_BUFF_SIZE (-33)
+// failed to setup dbus mainloop
+#define EPERS_DBUS_MAINLOOP (-34)
+// failed register lifecycle dbus
+#define EPERS_REGISTER_LIFECYCLE (-35)
+// failed register admin service dbus
+#define EPERS_REGISTER_ADMIN (-36)
+// registration on this key is not allowed
+#define EPERS_NOTIFY_NOT_ALLOWED (-37)
-/**
- * @brief Main dispatching loop
- *
- * @return 0
- */
-void* dbus_main_dispatching_loop(void* dataPtr);
-
-
+#ifdef __cplusplus
+}
+#endif
+/** \} */ /* End of PERS_GEN_ERROR */
#endif /* PERSISTENCE_CLIENT_LIBRARY_ERROR_DEF_H */