sntl_lmadmin_attr_set
Library Information
>This API belongs to the License Manager administration library.
>The corresponding header is lmadmin.h.
Description
Sets a {key, value} pair in the attribute object. The attributes are set in key-value format.
Syntax
SNTL_DECLARE(sntl_lmadmin_status_t) sntl_lmadmin_attr_set (sntl_lmadmin_attr_t *attr,
const char *key,
const char *value);
Argument | Description |
---|---|
attr [in] |
Pointer to the attribute object created using sntl_lmadmin_attr_new. The attribute object in which the value is to be set based on the key. |
key [in] |
The key for the attribute to be set. For example, 'SNTL_ATTR_LMADMINCONTEXT_NETWORK_TIMEOUT' is one of the keys for an admin context object. |
value [in] |
The value set for the corresponding key. For example, '30' is a valid value for the key SNTL_ATTR_LMADMINCONTEXT_NETWORK_TIMEOUT. |
Returns
The status code SNTL_LMADMIN_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 LmAdmin Library Error and Result Codes.