sntl_persistence_get_info
Library Information
This API belongs to:
•Sentinel RMS persistence initialization library
•Sentinel RMS persistence cleaning library
Description
Retrieves information based on the query parameter passed.
Syntax
SNTL_DECLARE(sntl_persistence_status_t) sntl_persistence_get_info (sntl_persistence_context_t *context,
const char *scope,
const char *query,
char **info);
Argument | Description |
---|---|
context [in] | Pointer to the persistence context object created using the sntl_persistence_context_new API. |
scope [in] | Reserved for future use. Use NULL as the value for this argument. |
query [in] | The query type, such as SNTL_PRS_QUERY_ERR_INFO_LATEST. |
info [out] | Pointer to the buffer containing the XML-based output. Memory resources are allocated by the API and can be released using the sntl_persistence_free API. |
Click the following query type link to learn about the corresponding XML query, scope, and output.
Query Types | Versions* | Description |
---|---|---|
1.0 | The information about the error code(s) of the last performed operation. |
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.