summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Huerner <ingo_huerner@mentor.com>2015-05-07 17:57:59 +0200
committerIngo Huerner <ingo_huerner@mentor.com>2015-05-07 17:57:59 +0200
commitf64412a688e9dfd8e0ced460168fd9d4e3539ff2 (patch)
tree7e1a74701fc93a768af05e2951c6188a8be3e792 /include
parent10de54dcd68ca69da6ac7b504ac344678c3911be (diff)
downloadpersistence-client-library-f64412a688e9dfd8e0ced460168fd9d4e3539ff2.tar.gz
Updated header documentation; fixed a problem when dbus connection is NULL
Diffstat (limited to 'include')
-rw-r--r--include/persistence_client_library.h4
-rw-r--r--include/persistence_client_library_key.h8
2 files changed, 7 insertions, 5 deletions
diff --git a/include/persistence_client_library.h b/include/persistence_client_library.h
index ce37173..117f62f 100644
--- a/include/persistence_client_library.h
+++ b/include/persistence_client_library.h
@@ -219,8 +219,7 @@ extern "C" {
*
* @return positive value: success;
* On error a negative value will be returned with the following error codes:
- * ::EPERS_NOT_INITIALIZED, ::EPERS_DBUS_MAINLOOP,
- * ::EPERS_REGISTER_LIFECYCLE, ::EPERS_REGISTER_ADMIN
+ * ::EPERS_DBUS_MAINLOOP, ::EPERS_REGISTER_LIFECYCLE, ::EPERS_REGISTER_ADMIN
* - since V1.3.1: ::EPERS_NOPRCTABLE: the application (folder) is not or incorrectly installed
* - since V1.4.1: ::EPERS_INVALID_ARGUMENT: invalid argument provided
*/
@@ -240,6 +239,7 @@ int pclInitLibrary(const char* appname, int shutdownMode);
*
* @return positive value: success;
* On error a negative value will be returned.
+ * ::EPERS_NOT_INITIALIZED
*/
int pclDeinitLibrary(void);
diff --git a/include/persistence_client_library_key.h b/include/persistence_client_library_key.h
index 37de33e..8493103 100644
--- a/include/persistence_client_library_key.h
+++ b/include/persistence_client_library_key.h
@@ -222,7 +222,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_RESOURCE_READ_ONLY
+ * ::EPERS_NOPRCTABLE ::EPERS_DB_VALUE_SIZE ::EPERS_RESOURCE_READ_ONLY ::EPERS_SHUTDOWN_NO_TRUSTED ::EPERS_COMMON ::EPERS_NOT_INITIALIZED
*/
int pclKeyHandleWriteData(int key_handle, unsigned char* buffer, int buffer_size);
@@ -240,7 +240,9 @@ int pclKeyHandleWriteData(int key_handle, unsigned char* buffer, int buffer_size
*
* @return positive value (0 or greater): the bytes read;
* On error a negative value will be returned with th following error codes:
- * ::EPERS_LOCKFS ::EPERS_NOT_INITIALIZED ::EPERS_BADPOL ::EPERS_NOPLUGINFUNCT
+ * ::EPERS_LOCKFS ::EPERS_NOT_INITIALIZED ::EPERS_BADPOL ::EPERS_NOPLUGINFUNCT ::EPERS_SHUTDOWN_NO_TRUSTED
+ * ::EPERS_COMMON
+ *
*/
int pclKeyReadData(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size);
@@ -299,7 +301,7 @@ 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_RESOURCE_READ_ONLY ::EPERS_NOT_RESP_APP
+ * ::EPERS_NOTIFY_SIG ::EPERS_RESOURCE_READ_ONLY ::EPERS_NOT_RESP_APP ::EPERS_SHUTDOWN_NO_TRUSTED
*/
int pclKeyWriteData(unsigned int ldbid, const char* resource_id, unsigned int user_no, unsigned int seat_no, unsigned char* buffer, int buffer_size);