diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2013-11-04 15:25:14 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2013-11-04 15:25:14 +0100 |
commit | fa0479cd9409770ebdc843b420e1beab778397aa (patch) | |
tree | 9e424bb49ab34581768508d3a78649bc03e089cf /include | |
parent | 91f3912f7c66844b76ea8dfeadd766d5318ae017 (diff) | |
download | persistence-client-library-fa0479cd9409770ebdc843b420e1beab778397aa.tar.gz |
corrected initcounter; added unregister notify functions
Diffstat (limited to 'include')
-rw-r--r-- | include/persistence_client_library_key.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/persistence_client_library_key.h b/include/persistence_client_library_key.h index 3a1c6b0..8474f32 100644 --- a/include/persistence_client_library_key.h +++ b/include/persistence_client_library_key.h @@ -187,7 +187,16 @@ int pclKeyHandleReadData(int key_handle, unsigned char* buffer, int buffer_size) */ int pclKeyHandleRegisterNotifyOnChange(int key_handle, pclChangeNotifyCallback_t callback); - +/** + * @brief unregister a change notification for persistent data + * + * @param key_handle key value handle return by key_handle_open() + * @param callback notification callback + * + * @return positive value: registration OK; On error a negative value will be returned with the following error codes: + * ::EPERS_LOCKFS + */ +int pclKeyHandleUnRegisterNotifyOnChange(int key_handle, pclChangeNotifyCallback_t callback); /** * @brief writes persistent data identified by key handle @@ -238,6 +247,20 @@ int pclKeyRegisterNotifyOnChange(unsigned int ldbid, const char* resource_id, un /** + * @brief unregister a change notification for persistent data + * + * @param ldbid logical database ID of the resource to monitor + * @param resource_id the resource ID + * @param user_no the user ID; user_no=0 can not be used as user-ID beacause ‘0’ is defined as System/node + * @param seat_no the seat number + * @param callback notification callback + * + * @return positive value: registration OK; On error a negative value will be returned with the following error codes: + * ::EPERS_RES_NO_KEY ::EPERS_NOKEYDATA ::EPERS_NOPRCTABLE + */ +int pclKeyUnRegisterNotifyOnChange( unsigned int ldbid, const char * resource_id, unsigned int user_no, unsigned int seat_no, pclChangeNotifyCallback_t callback); + +/** * @brief writes persistent data identified by ldbid and resource_id * * @param ldbid logical database ID |