summaryrefslogtreecommitdiff
path: root/include_protected
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2013-03-27 14:17:43 +0100
committerIngo Huerner <ingo.huerner@xse.de>2013-03-27 14:17:43 +0100
commit9b1db7aadd4e326a24c35a7b2408b8e1d3958026 (patch)
treeeede6ccecbcc07cbe9aad180c450b55ae6fad9e1 /include_protected
parent1e9bbac24b54622b43c3ed04a639506cdb905252 (diff)
downloadpersistence-client-library-9b1db7aadd4e326a24c35a7b2408b8e1d3958026.tar.gz
Implemented changed notification for shared data; persistence_client_library_dbus_test.c has beend used for receiving notifications
Diffstat (limited to 'include_protected')
-rw-r--r--include_protected/persistence_client_library_data_organization.h6
-rw-r--r--include_protected/persistence_client_library_db_access.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/include_protected/persistence_client_library_data_organization.h b/include_protected/persistence_client_library_data_organization.h
index ca28be8..6151aa4 100644
--- a/include_protected/persistence_client_library_data_organization.h
+++ b/include_protected/persistence_client_library_data_organization.h
@@ -27,6 +27,8 @@ extern "C" {
#define PERSIST_CLIENT_LIBRARY_DATA_ORGANIZATION_INTERFACE_VERSION (0x01000000U)
#include "../include/persistence_client_library_error_def.h"
+#include "../include/persistence_client_library_key.h"
+
#include <string.h>
#include <stdio.h>
@@ -127,6 +129,10 @@ extern char gAppId[MaxAppNameLen];
/// max key value data size
extern int gMaxKeyValDataSize;
+
+extern int(* gChangeNotifyCallback)(PersistenceNotification_s * notifyStruct);
+
+
#ifdef __cplusplus
}
#endif
diff --git a/include_protected/persistence_client_library_db_access.h b/include_protected/persistence_client_library_db_access.h
index 7e7c0aa..1958b0a 100644
--- a/include_protected/persistence_client_library_db_access.h
+++ b/include_protected/persistence_client_library_db_access.h
@@ -29,6 +29,7 @@ extern "C" {
#include "persistence_client_library_data_organization.h"
#include "persistence_client_library_rc_table.h"
+#include "persistence_client_library_key.h"
@@ -116,7 +117,8 @@ void pers_db_close_all();
*
* @return 0 of registration was successfull; -1 if registration failes
*/
-int persistence_reg_notify_on_change(char* dbPath, char* key);
+int persistence_reg_notify_on_change(char* dbPath, char* key, unsigned int ldbid, unsigned int user_no, unsigned int seat_no,
+ changeNotifyCallback_t callback);