diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2013-01-22 08:42:26 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2013-01-22 08:42:26 +0100 |
commit | ede31ce0be4b701bce6d3bb89b7cd46e06c6c8dc (patch) | |
tree | 76431d08ae5bfc78468f7a0a639985aaa827c3a5 /include | |
parent | 9b36e25c85d296896cb8d35699483fbda9ed4e8a (diff) | |
download | persistence-client-library-ede31ce0be4b701bce6d3bb89b7cd46e06c6c8dc.tar.gz |
Changed file and key-value API according GENIVI naming conventionsv0.4.0
Diffstat (limited to 'include')
-rw-r--r-- | include/persistence_client_library_file.h | 20 | ||||
-rw-r--r-- | include/persistence_client_library_key.h | 24 |
2 files changed, 22 insertions, 22 deletions
diff --git a/include/persistence_client_library_file.h b/include/persistence_client_library_file.h index 47a4927..cf85b84 100644 --- a/include/persistence_client_library_file.h +++ b/include/persistence_client_library_file.h @@ -31,7 +31,7 @@ extern "C" { #endif -#define PERSIST_FILEAPI_INTERFACE_VERSION (0x02000000U) +#define PERSIST_FILEAPI_INTERFACE_VERSION (0x03000000U) @@ -43,7 +43,7 @@ extern "C" { * @return zero on success. On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS */ -int file_close(int fd); +int pclFileClose(int fd); @@ -54,7 +54,7 @@ int file_close(int fd); * * @return positive value. On error the negative value -1 will be returned */ -int file_get_size(int fd); +int pclFileGetSize(int fd); @@ -69,7 +69,7 @@ int file_get_size(int fd); * @return a pointer to the mapped area, or on error the value MAP_FAILED or * EPERS_MAP_FAILEDLOCK if filesystem is currrently locked */ -void* file_map_data(void* addr, long size, long offset, int fd); +void* pclFileMapData(void* addr, long size, long offset, int fd); @@ -85,7 +85,7 @@ void* file_map_data(void* addr, long size, long offset, int fd); * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS, EPERS_MAXHANDLE, EPERS_NOKEY, EPERS_NOKEYDATA, EPERS_NOPRCTABLE or EPERS_COMMON, */ -int file_open(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclFileOpen(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); @@ -100,7 +100,7 @@ int file_open(unsigned int ldbid, const char* resource_id, unsigned int user_no, * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS or EPERS_COMMON */ -int file_read_data(int fd, void * buffer, int buffer_size); +int pclFileReadData(int fd, void * buffer, int buffer_size); @@ -116,7 +116,7 @@ int file_read_data(int fd, void * buffer, int buffer_size); * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS or EPERS_COMMON */ -int file_remove(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclFileRemove(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); @@ -137,7 +137,7 @@ int file_remove(unsigned int ldbid, const char* resource_id, unsigned int user_n * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS or EPERS_COMMON */ -int file_seek(int fd, long int offset, int whence); +int pclFileSeek(int fd, long int offset, int whence); @@ -151,7 +151,7 @@ int file_seek(int fd, long int offset, int whence); * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS or EPERS_COMMON */ -int file_unmap_data(void* address, long size); +int pclFileUnmapData(void* address, long size); @@ -166,7 +166,7 @@ int file_unmap_data(void* address, long size); * On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS or EPERS_COMMON */ -int file_write_data(int fd, const void * buffer, int buffer_size); +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 2be3927..fc75498 100644 --- a/include/persistence_client_library_key.h +++ b/include/persistence_client_library_key.h @@ -32,7 +32,7 @@ extern "C" { #endif -#define PERSIST_KEYVALUEAPI_INTERFACE_VERSION (0x02000000U) +#define PERSIST_KEYVALUEAPI_INTERFACE_VERSION (0x03000000U) @@ -47,7 +47,7 @@ extern "C" { * @return positive value: success; On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS */ -int key_delete(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclKeyDelete(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); @@ -62,7 +62,7 @@ int key_delete(unsigned int ldbid, const char* resource_id, unsigned int user_no * @return positive value: the size; On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS, EPERS_BADPOL, EPERS_NOKEY, EPERS_NOKEYDATA or EPERS_NOPRCTABLE */ -int key_get_size(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclKeyGetSize(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); /** * @brief close the access to a key-value identified by key handle @@ -72,7 +72,7 @@ int key_get_size(unsigned int ldbid, const char* resource_id, unsigned int user_ * @return positive value: success; On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS */ -int key_handle_close(int key_handle); +int pclKeyHandleClose(int key_handle); @@ -83,7 +83,7 @@ int key_handle_close(int key_handle); * * @return positive value: the size; On error a negative value will be returned with th follwoing error codes: */ -int key_handle_get_size(int key_handle); +int pclKeyHandleGetSize(int key_handle); @@ -98,7 +98,7 @@ int key_handle_get_size(int key_handle); * @return positive value: the key handle to access the value; * On error a negative value will be returned with th follwoing error codes: */ -int key_handle_open(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclKeyHandleOpen(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); @@ -112,7 +112,7 @@ int key_handle_open(unsigned int ldbid, const char* resource_id, unsigned int us * @return positive value: the bytes read; On error a negative value will be returned with th follwoing error codes: * */ -int key_handle_read_data(int key_handle, unsigned char* buffer, int buffer_size); +int pclKeyHandleReadData(int key_handle, unsigned char* buffer, int buffer_size); @@ -123,7 +123,7 @@ int key_handle_read_data(int key_handle, unsigned char* buffer, int buffer_size) * * @return positive value: registration OK; On error a negative value will be returned with th follwoing error codes: */ -int key_handle_register_notify_on_change(int key_handle); +int pclKeyHandleRegisterNotifyOnChange(int key_handle); @@ -137,7 +137,7 @@ int key_handle_register_notify_on_change(int key_handle); * * @return positive value: the bytes written; On error a negative value will be returned with th follwoing error codes: */ -int key_handle_write_data(int key_handle, unsigned char* buffer, int buffer_size); +int pclKeyHandleWriteData(int key_handle, unsigned char* buffer, int buffer_size); @@ -153,7 +153,7 @@ int key_handle_write_data(int key_handle, unsigned char* buffer, int buffer_size * * @return positive value: the bytes read; On error a negative value will be returned with th follwoing error codes: */ -int key_read_data(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size); +int pclKeyReadData(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size); @@ -167,7 +167,7 @@ int key_read_data(unsigned int ldbid, const char* resource_id, unsigned int user * * @return positive value: registration OK; On error a negative value will be returned with th follwoing error codes: */ -int key_register_notify_on_change(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); +int pclKeyRegisterNotifyOnChange(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no); @@ -184,7 +184,7 @@ int key_register_notify_on_change(unsigned int ldbid, const char* resource_id, u * * @return positive value: the bytes written; On error a negative value will be returned with th follwoing error codes: */ -int key_write_data(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size); +int pclKeyWriteData(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size); #ifdef __cplusplus |