ham_file_filter_t Struct Reference
[hamsterdb Enhanced API]

#include <hamsterdb_int.h>

Data Fields

void * userdata
ham_file_filter_before_write_cb_t before_write_cb
ham_file_filter_after_read_cb_t after_read_cb
ham_file_filter_close_cb_t close_cb
ham_u32_t _flags
ham_file_filter_t_next
ham_file_filter_t_prev

Detailed Description

A handle for file-level filtering

File-level filters can modify the page data before some data is written to disk, and immediately after it's read from disk.

File-level filters can be used for example for writing encryption filters. See ham_env_enable_encryption() to create a filter for AES-based encryption.

Each of the three callback functions can be NULL.

Before this structure is used, it has to be initialized with zeroes.

Definition at line 173 of file hamsterdb_int.h.


Field Documentation

For internal use

Definition at line 188 of file hamsterdb_int.h.

For internal use

Definition at line 191 of file hamsterdb_int.h.

Definition at line 191 of file hamsterdb_int.h.

The function which is called after the page is read

Definition at line 182 of file hamsterdb_int.h.

The function which is called before the page is written

Definition at line 179 of file hamsterdb_int.h.

The function which is when the Database is closed

Definition at line 185 of file hamsterdb_int.h.

The user data

Definition at line 176 of file hamsterdb_int.h.


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

Generated on Wed Apr 14 20:37:56 2010 for hamsterdb Embedded Database by  doxygen 1.6.1