Commit 957b0096 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Add db->associate to the set of methods we put into db.h. Addresses #48.

git-svn-id: file:///svn/tokudb@776 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2ce077d6
......@@ -106,6 +106,7 @@ void sample_db_offsets (void) {
/* Do these in alphabetical order. */
field_counter=0;
STRUCT_SETUP(DB, app_private, "void *%s");
STRUCT_SETUP(DB, associate, "int (*%s) (DB*, DB_TXN*, DB*, int(*)(DB*, const DBT*, const DBT*, DBT*), u_int32_t)");
STRUCT_SETUP(DB, close, "int (*%s) (DB*, u_int32_t)");
STRUCT_SETUP(DB, cursor, "int (*%s) (DB *, DB_TXN *, DBC **, u_int32_t)");
STRUCT_SETUP(DB, dbenv, "DB_ENV *%s");
......
......@@ -43,6 +43,7 @@ struct fieldinfo db_lsn_fields32[] = {
struct fieldinfo db_fields32[] = {
{"void *app_private", 16, 4},
{"DB_ENV *dbenv", 20, 4},
{"int (*associate) (DB*, DB_TXN*, DB*, int(*)(DB*, const DBT*, const DBT*, DBT*), u_int32_t)", 268, 4},
{"int (*close) (DB*, u_int32_t)", 272, 4},
{"int (*cursor) (DB *, DB_TXN *, DBC **, u_int32_t)", 276, 4},
{"int (*del) (DB *, DB_TXN *, DBT *, u_int32_t)", 280, 4},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment