sntl_lmadmin_attr_new
Library Information
>This API belongs to the License Manager administration library.
>The corresponding header is lmadmin.h.
Description
Creates a new attribute object in the attr output parameter.
An attribute object is a collection of {key, value} pairs that defines an API's additional input parameters. For example, the sntl_licensing_login_attr function accepts 'attr' to specify the feature version, required login units and so on. To define the {key, value} pairs, the sntl_lmadmin_attr_set is to be used.
Syntax
SNTL_DECLARE(sntl_lmadmin_status_t) sntl_lmadmin_attr_new (sntl_lmadmin_attr_t **attr);
Argument | Description |
---|---|
attr [out] | Pointer to the attribute object created. Memory resources to be allocated by the API is released using the sntl_lmadmin_attr_delete API. |
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.