2007-07-13 19:37:47 +00:00
|
|
|
#ifndef YBT_H
|
|
|
|
#define YBT_H
|
|
|
|
|
2007-11-29 14:18:54 +00:00
|
|
|
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
|
|
|
|
2007-07-13 19:37:47 +00:00
|
|
|
// brttypes.h must be first to make 64-bit file mode work right in linux.
|
|
|
|
#include "brttypes.h"
|
|
|
|
#include "../include/db.h"
|
|
|
|
|
|
|
|
|
2007-11-29 15:17:46 +00:00
|
|
|
DBT* toku_init_dbt (DBT *);
|
|
|
|
DBT *toku_fill_dbt(DBT *dbt, bytevec k, ITEMLEN len);
|
2008-05-24 17:22:14 +00:00
|
|
|
int toku_dbt_set_value (DBT *, bytevec *val, ITEMLEN vallen, void **staticptrp, BOOL ybt1_disposable);
|
|
|
|
int toku_dbt_set_two_values(DBT* key, bytevec *key_data, ITEMLEN key_len, void** key_staticptrp, BOOL key_disposable,
|
|
|
|
DBT* val, bytevec *val_data, ITEMLEN val_len, void** val_staticptrp, BOOL val_disposable);
|
2008-05-07 20:03:13 +00:00
|
|
|
int toku_dbt_set_three_values(
|
2008-05-24 17:22:14 +00:00
|
|
|
DBT* ybt1, bytevec *ybt1_data, ITEMLEN ybt1_len, void** ybt1_staticptrp, BOOL ybt1_disposable,
|
|
|
|
DBT* ybt2, bytevec *ybt2_data, ITEMLEN ybt2_len, void** ybt2_staticptrp, BOOL ybt2_disposable,
|
|
|
|
DBT* ybt3, bytevec *ybt3_data, ITEMLEN ybt3_len, void** ybt3_staticptrp, BOOL ybt3_disposable);
|
2008-05-07 20:03:13 +00:00
|
|
|
|
2007-11-14 17:58:38 +00:00
|
|
|
|
|
|
|
|
2007-07-13 19:37:47 +00:00
|
|
|
#endif
|