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

Library Information

This API belongs to the Sentinel RMS persistence cleaning library.

Description

Fixes the corrupted persistence data. For information on when to use the repair operation, refer to Cleaning Persistence Data Using Unified API.

Syntax

SNTL_DECLARE(sntl_persistence_status_t) sntl_persistence_repair (sntl_persistence_context_t   *context,
                                                                 char                          *persistence_scope);
Argument Description
context [in] Pointer to the persistence context object created using the sntl_persistence_context_new API.
persistence_scope [in]

Defines the Sentinel RMS SDK version to repair the persistence files. The input is an XML that includes the following arguments:

>productVersion: The product version where repairing is required. Repair is context-dependent that means, in case of network license, RMS License Manager version would be the product version. And in case of standalone license, client library version would be the product version. The product version is a composition of major version.minor version.patch version. For e.g. 9.8.0.

XML Structure

<peristenceScope>
    <productVersion>9.8.0</productVersion>
</persistenceScope>

Usage Notes

>Administrator privileges are required to use this API.

>When performing the repair operation, make sure the licensed application/License Manager must be stopped.

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.