sntl_licensing_attr_set Supported in On-premises modeSupported in Lease modeSupported in Connected (Cloud LM) mode

Library Information

>This API belongs to the Sentinel RMS licensing library.

>The corresponding header is licensing.h.

Description

Sets a {key, value} pair in the attribute object. The attributes are set in key-value format.

Syntax

SNTL_DECLARE(sntl_status_t) sntl_licensing_attr_set (sntl_licensing_attr_t    *attr,
                                                     const char               *key,
                                                     const char               *value);

 

Argument Description

attr [in]

Pointer to the attribute object created using sntl_licensing_attr_new.
key [in]

The key for the attribute to be set.

For example, SNTL_ATTR_APPCONTEXT_CONTACT_SERVER is the key for setting the License Manager.

value [in]

The value set for the corresponding key.

For example, 'localhost' value can be specified for the SNTL_ATTR_APPCONTEXT_CONTACT_SERVER key

Returns

The status code SNTL_SUCCESS is returned, if successful. Otherwise, a specific status code is returned indicating the reason for failure. For the complete list of error codes, see Licensing Library Error and Result Codes