sntl_persistence_context_new
Library Information
This API belongs to:
•Sentinel RMS persistence initialization library
•Sentinel RMS persistence cleaning library
Description
Creates the persistence context object.
Syntax
SNTL_DECLARE(sntl_persistence_status_t) sntl_persistence_context_new (sntl_persistence_device_t device,
sntl_persistence_attr_t *attr,
sntl_persistence_context_t **context);
Argument | Description |
---|---|
device [in] |
This is an enum constant. The supported values are: > SNTL_PERSISTENCE_STANDALONE_DEVICE: For standalone licensing. > SNTL_PERSISTENCE_NETWORK_DEVICE: For network licensing. |
attr [in] | Reserved for future use. Use NULL as the value for this argument. |
context [out] |
Points to the persistence context object created. This API allocates the memory resources , which can be released using the sntl_persistence_context_delete API. |
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.