Berkeley DB Reference Version 5.3.33

DB_ENV->log_get_config()

#include <db.h>

int
DB_ENV->log_get_config(DB_ENV *dbenv, u_int32_t which, int *onoffp);  

The DB_ENV->log_get_config() method returns whether the specified which parameter is currently set or not. You can manage this value using the DB_ENV->log_set_config() method.

The DB_ENV->log_get_config() method may be called at any time during the life of the application.

The DB_ENV->log_get_config() method returns a non-zero error value on failure and 0 on success.

Parameters

which

The which parameter is the message value for which configuration is being checked. Must be set to one of the following values:

onoffp

The onoffp parameter references memory into which the configuration of the specified which parameter is copied.

If the returned onoff value is zero, the parameter is off; otherwise, on.

Class

DB_ENV

See Also

Logging Subsystem and Related Methods, DB_ENV->log_set_config()