hamsterdb Embedded Database  2.1.7
Data Fields
ham_parameter_t Struct Reference

#include <hamsterdb.h>

Data Fields

ham_u32_t name
 
ham_u64_t value
 

Detailed Description

A named parameter.

These parameter structures are used for functions like ham_env_open, ham_env_create, etc. to pass variable length parameter lists.

The lists are always arrays of type ham_parameter_t, with a terminating element of { 0, NULL}, e.g.

  ham_parameter_t parameters[] = {
   { HAM_PARAM_CACHE_SIZE, 2 * 1024 * 1024 }, // set cache size to 2 mb
   { HAM_PARAM_PAGE_SIZE, 4096 }, // set page size to 4 kb
   { 0, NULL }
  };

Definition at line 269 of file hamsterdb.h.

Field Documentation

ham_u32_t ham_parameter_t::name

The name of the parameter; all HAM_PARAM_*-constants

Definition at line 271 of file hamsterdb.h.

ham_u64_t ham_parameter_t::value

The value of the parameter.

Definition at line 274 of file hamsterdb.h.


The documentation for this struct was generated from the following file: