summaryrefslogtreecommitdiff
path: root/include_protected
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2013-06-25 01:18:53 +0200
committerIngo Huerner <ingo.huerner@xse.de>2013-06-25 01:18:53 +0200
commitb3b3094e5967b3644c69e9f82de8e39f9e9362d6 (patch)
treedead6c4d20b7b89feb9637c7e36f4279a981567f /include_protected
parent3e1b8364beae20755494bbd2ba198a1fca9a1eba (diff)
downloadpersistence-client-library-b3b3094e5967b3644c69e9f82de8e39f9e9362d6.tar.gz
Added ref counter for init/deinit; updated header doxygen tags; removed several printf; different minor optimizations
Diffstat (limited to 'include_protected')
-rw-r--r--include_protected/persistence_client_library_data_organization.h10
-rw-r--r--include_protected/persistence_client_library_db_access.h6
2 files changed, 11 insertions, 5 deletions
diff --git a/include_protected/persistence_client_library_data_organization.h b/include_protected/persistence_client_library_data_organization.h
index 56c86d7..01ad010 100644
--- a/include_protected/persistence_client_library_data_organization.h
+++ b/include_protected/persistence_client_library_data_organization.h
@@ -24,7 +24,7 @@
extern "C" {
#endif
-#define PERSIST_CLIENT_LIBRARY_DATA_ORGANIZATION_INTERFACE_VERSION (0x01030000U)
+#define PERSIST_CLIENT_LIBRARY_DATA_ORGANIZATION_INTERFACE_VERSION (0x01040000U)
#include "../include/persistence_client_library_error_def.h"
#include "../include/persistence_client_library_key.h"
@@ -43,6 +43,9 @@ enum _PersistenceConstantDef
ResIsFile = 1, /// flag to identify that resource a file
AccessNoLock = 1, /// flag to indicate that access is not locked
+ PCLnotInitialized = 0, ///
+ PCLinitialized = 1, ///
+
FileClosed = 0,
FileOpen = 1,
@@ -141,9 +144,12 @@ extern char gAppId[MaxAppNameLen];
/// max key value data size
extern int gMaxKeyValDataSize;
-// the DLT context
+/// the DLT context
extern DltContext gDLTContext;
+/// flag to indicate if client library has been initialized
+extern unsigned int gPclInitialized;
+
/**
* @brief definition of change callback function
diff --git a/include_protected/persistence_client_library_db_access.h b/include_protected/persistence_client_library_db_access.h
index feeb6c1..ca101bd 100644
--- a/include_protected/persistence_client_library_db_access.h
+++ b/include_protected/persistence_client_library_db_access.h
@@ -24,12 +24,12 @@
extern "C" {
#endif
-#define PERSIST_DATA_ACCESS_INTERFACE_VERSION (0x04010000U)
+#define PERSIST_DATA_ACCESS_INTERFACE_VERSION (0x04020000U)
#include "persistence_client_library_data_organization.h"
#include "persistence_client_library_rc_table.h"
-#include "persistence_client_library_key.h"
+#include "../include/persistence_client_library_key.h"
@@ -89,7 +89,7 @@ int pers_db_get_key_size(char* dbPath, char* key, PersistenceInfo_s* info);
* @return 0 if deletion was successfull;
* or an error code: EPERS_DB_KEY_SIZE, EPERS_NOPRCTABLE, EPERS_DB_ERROR_INTERNAL or EPERS_NOPLUGINFUNCT
*/
-int pers_db_delete_key(char* dbPath, char* dbKey, PersistenceInfo_s* info);
+int pers_db_delete_key(char* dbPath, char* key, PersistenceInfo_s* info);