Struct MDBX_chk_callbacks_t
ClassList > MDBX_chk_callbacks_t
A set of callback functions used for checking the integrity of a database. More...
#include <mdbx.h>
Public Attributes
| Type | Name |
|---|---|
| bool(* | check_break |
| void(* | issue |
| MDBX_chk_line_t *(* | print_begin |
| void(* | print_chars |
| void(* | print_done |
| void(* | print_flush |
| void(* | print_format |
| void(* | print_size |
| int(* | scope_conclude |
| void(* | scope_pop |
| int(* | scope_push |
| int(* | stage_begin |
| int(* | stage_end |
| int(* | table_conclude |
| void(* | table_dispose |
| MDBX_chk_user_table_cookie_t *(* | table_filter |
| int(* | table_handle_kv |
Detailed Description
The callback functions are designed to organize interaction with the application code. This includes the integration of application logic that verifies the integrity of a data structure above the key-value level, the preparation and structured output of information about both the progress and the results of verification.
All callback functions are optional, unused ones must be set to nullptr.
Note:
This API has not been frozen yet, and there may be improvements and changes in subsequent versions.
See also: mdbx_env_chk()
Public Attributes Documentation
variable check_break
bool(* MDBX_chk_callbacks_t::check_break) (MDBX_chk_context_t *ctx);
variable issue
void(* MDBX_chk_callbacks_t::issue) (MDBX_chk_context_t *ctx, const char *object, uint64_t entry_number, const char *issue, const char *extra_fmt, va_list extra_args);
variable print_begin
MDBX_chk_line_t *(* MDBX_chk_callbacks_t::print_begin) (MDBX_chk_context_t *ctx, MDBX_chk_severity_t severity);
variable print_chars
void(* MDBX_chk_callbacks_t::print_chars) (MDBX_chk_line_t *, const char *str, size_t len);
variable print_done
void(* MDBX_chk_callbacks_t::print_done) (MDBX_chk_line_t *);
variable print_flush
void(* MDBX_chk_callbacks_t::print_flush) (MDBX_chk_line_t *);
variable print_format
void(* MDBX_chk_callbacks_t::print_format) (MDBX_chk_line_t *, const char *fmt, va_list args);
variable print_size
void(* MDBX_chk_callbacks_t::print_size) (MDBX_chk_line_t *, const char *prefix, const uint64_t value, const char *suffix);
variable scope_conclude
int(* MDBX_chk_callbacks_t::scope_conclude) (MDBX_chk_context_t *ctx, MDBX_chk_scope_t *outer, MDBX_chk_scope_t *inner, int err);
variable scope_pop
void(* MDBX_chk_callbacks_t::scope_pop) (MDBX_chk_context_t *ctx, MDBX_chk_scope_t *outer, MDBX_chk_scope_t *inner);
variable scope_push
int(* MDBX_chk_callbacks_t::scope_push) (MDBX_chk_context_t *ctx, MDBX_chk_scope_t *outer, MDBX_chk_scope_t *inner, const char *fmt, va_list args);
variable stage_begin
int(* MDBX_chk_callbacks_t::stage_begin) (MDBX_chk_context_t *ctx, MDBX_chk_stage_t);
variable stage_end
int(* MDBX_chk_callbacks_t::stage_end) (MDBX_chk_context_t *ctx, MDBX_chk_stage_t, int err);
variable table_conclude
int(* MDBX_chk_callbacks_t::table_conclude) (MDBX_chk_context_t *ctx, const MDBX_chk_table_t *table, MDBX_cursor *cursor, int err);
variable table_dispose
void(* MDBX_chk_callbacks_t::table_dispose) (MDBX_chk_context_t *ctx, const MDBX_chk_table_t *table);
variable table_filter
MDBX_chk_user_table_cookie_t *(* MDBX_chk_callbacks_t::table_filter) (MDBX_chk_context_t *ctx, const MDBX_val *name, MDBX_db_flags_t flags);
variable table_handle_kv
int(* MDBX_chk_callbacks_t::table_handle_kv) (MDBX_chk_context_t *ctx, const MDBX_chk_table_t *table, size_t entry_number, const MDBX_val *key, const MDBX_val *value);
The documentation for this class was generated from the following file docs/mdbx.h