sntl_persistence_attr_set
Library Information
This API belongs to:
•Sentinel RMS persistence initialization library
•Sentinel RMS persistence cleaning library
Description
Sets a {key, value} pair in the attribute object. The attributes are set in key-value format.
Syntax
SNTL_DECLARE(sntl_persistence_status_t) sntl_persistence_attr_set (sntl_persistence_attr_t *attr,
const char *key,
const char *value);
Argument | Description |
---|---|
attr [in] |
Pointer to the attribute object created using sntl_persistence_attr_new. The attribute object in which the key-value is set. |
key [in] |
Reserved for future use. Use NULL as the value for this argument. |
value [in] |
Reserved for future use. Use NULL as the value for this argument. |
Returns
The status code SNTL_PERSISTENCE_SUCCESS is returned, if successful. Otherwise, a specific status code is returned indicating the reason for failure.
For the complete list of error codes, refer to Persistence Library Error Codes.