DB_SITE->get_config()

#include <db.h>

int
DB_SITE->get_config(DB_SITE *site, u_int32_t which, 
                    u_int32_t *valuep); 

The DB_SITE->get_config() method returns whether the specified which parameter is currently set. See the DB_SITE->set_config() method for the configuration flags that can be set for a DB_SITE handle.

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

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

Parameters

which

The which parameter is the configuration flag to check. See the DB_SITE->set_config() method for a list of configuration flags that you can provide to this parameter.

valuep

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

If the returned value is zero, the configuration flag is off; otherwise it is on.

Class

DB_SITE

See Also

Replication and Related Methods, DB_SITE->set_config()