diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2013-12-09 09:27:45 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2013-12-09 09:27:45 +0100 |
commit | e13e80bc4d767605b85e87d459e1f3016cdfddd1 (patch) | |
tree | 4ddc8bb424226f3163692d0026214c67c8758ea7 /include | |
parent | da863e2e60b23b1fd718b39e12a5ed26807dc752 (diff) | |
download | persistence-client-library-e13e80bc4d767605b85e87d459e1f3016cdfddd1.tar.gz |
Fixed PCL bugs: 137, 138, 141
Diffstat (limited to 'include')
-rw-r--r-- | include/persistence_client_library_error_def.h | 2 | ||||
-rw-r--r-- | include/persistence_client_library_file.h | 2 | ||||
-rw-r--r-- | include/persistence_client_library_key.h | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/include/persistence_client_library_error_def.h b/include/persistence_client_library_error_def.h index 8a4a63f..04bbf0f 100644 --- a/include/persistence_client_library_error_def.h +++ b/include/persistence_client_library_error_def.h @@ -105,6 +105,8 @@ extern "C" { #define EPERS_NOTIFY_NOT_ALLOWED (-37) // the requested resource is not a file #define EPERS_RESOURCE_NO_FILE (-38) +// write to requested resource failed, read onyl resource +#define EPERS_RESOURCE_READ_ONLY (-39) #ifdef __cplusplus } diff --git a/include/persistence_client_library_file.h b/include/persistence_client_library_file.h index c357714..2cdbccd 100644 --- a/include/persistence_client_library_file.h +++ b/include/persistence_client_library_file.h @@ -177,7 +177,7 @@ int pclFileUnmapData(void* address, long size); * * @return positive value (0 or greater): bytes written; * On error a negative value will be returned with th following error codes: - * ::EPERS_LOCKFS, ::EPERS_NOT_INITIALIZED or ::EPERS_COMMON + * ::EPERS_LOCKFS, ::EPERS_NOT_INITIALIZED or ::EPERS_COMMON ::EPERS_RESOURCE_READ_ONLY * If ::EPERS_COMMON will be returned errno will be set. */ int pclFileWriteData(int fd, const void * buffer, int buffer_size); diff --git a/include/persistence_client_library_key.h b/include/persistence_client_library_key.h index fa9fa16..52e4aa6 100644 --- a/include/persistence_client_library_key.h +++ b/include/persistence_client_library_key.h @@ -223,7 +223,7 @@ int pclKeyHandleUnRegisterNotifyOnChange(int key_handle, pclChangeNotifyCallback * @return positive value (0 or greater): the bytes written; * On error a negative value will be returned with the following error codes: * ::EPERS_LOCKFS ::EPERS_MAX_BUFF_SIZE ::EPERS_NOTIFY_SIG ::EPERS_DB_VALUE_SIZE ::EPERS_DB_KEY_SIZE - * ::EPERS_NOPRCTABLE ::EPERS_DB_VALUE_SIZE + * ::EPERS_NOPRCTABLE ::EPERS_DB_VALUE_SIZE ::EPERS_RESOURCE_READ_ONLY */ int pclKeyHandleWriteData(int key_handle, unsigned char* buffer, int buffer_size); @@ -294,7 +294,8 @@ int pclKeyUnRegisterNotifyOnChange( unsigned int ldbid, const char * resource_ * * @return positive value (0 or greater): the bytes written; * On error a negative value will be returned with the following error codes: - * ::EPERS_LOCKFS ::EPERS_BADPOL ::EPERS_BUFLIMIT ::EPERS_DB_VALUE_SIZE ::EPERS_DB_KEY_SIZE ::EPERS_NOTIFY_SIG + * ::EPERS_LOCKFS ::EPERS_BADPOL ::EPERS_BUFLIMIT ::EPERS_DB_VALUE_SIZE ::EPERS_DB_KEY_SIZE + * ::EPERS_NOTIFY_SIG ::EPERS_RESOURCE_READ_ONLY */ int pclKeyWriteData(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size); |