NAME
log_ctx_db - log_ctx for persistent data
SYNOPSIS
#include <log_ctx.h>
#include <log_ctx_db.h>

int create_log_ctx_db(ctxp, name)
    log_ctx         *ctxp;
    UCHAR           *name;
DESCRIPTION
log_ctx_db maps the log_ctx abstraction onto a database.

See log_ctx for information on using the log_ctx abstraction.

PARAMETERS
The name parameter is the file name of the database to use for the log.
RETURN VALUES
On success, create_log_ctx_db() returns NO_ERROR. On failure, it returns LOG_CTX_ERR_BAD_PARAMETER or LOG_CTX_ERR_MEMORY.

See Return Values for descriptions of individual error codes. For documentation on displaying or logging return values, see error_ctx.

SEE ALSO
log_ctx
NOTES
Because log_ctx_db uses a database for persistence, calling LOG_delete() does not delete the underlying log.
EXAMPLE
See log_ctx for example use of the log_ctx abstraction.
BUGS
This document describes a beta implementation. The information contained in this document may be incomplete and is subject to change.

Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.