2013-04-16 23:57:27 -04:00
|
|
|
// This file defines the public interface to the ydb library
|
|
|
|
|
|
|
|
#if !defined(TOKU_YDB_INTERFACE_H)
|
|
|
|
#define TOKU_YDB_INTERFACE_H
|
|
|
|
|
2013-04-16 23:59:08 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
// Initialize the ydb library globals.
|
|
|
|
// Called when the ydb library is loaded.
|
2013-04-16 23:57:53 -04:00
|
|
|
int toku_ydb_init(void);
|
2013-04-16 23:57:27 -04:00
|
|
|
|
|
|
|
// Called when the ydb library is unloaded.
|
2013-04-16 23:57:53 -04:00
|
|
|
int toku_ydb_destroy(void);
|
2013-04-16 23:57:27 -04:00
|
|
|
|
2013-04-16 23:57:29 -04:00
|
|
|
// db_env_create for the trace library
|
|
|
|
int db_env_create_toku10(DB_ENV **, u_int32_t) __attribute__((__visibility__("default")));
|
|
|
|
|
|
|
|
// db_create for the trace library
|
|
|
|
int db_create_toku10(DB **, DB_ENV *, u_int32_t) __attribute__((__visibility__("default")));
|
|
|
|
|
2013-04-16 23:59:01 -04:00
|
|
|
// test only function
|
2013-04-16 23:59:06 -04:00
|
|
|
int toku_test_db_redirect_dictionary(DB * db, char * dname_of_new_file, DB_TXN *dbtxn) __attribute__((__visibility__("default")));
|
2013-04-16 23:59:01 -04:00
|
|
|
|
2013-04-16 23:59:08 -04:00
|
|
|
uint64_t toku_test_get_latest_lsn(DB_ENV *env) __attribute__((__visibility__("default")));
|
|
|
|
|
2013-04-16 23:59:18 -04:00
|
|
|
// test-only function
|
|
|
|
extern int toku_test_get_checkpointing_user_data_status(void) __attribute__((__visibility__("default")));
|
|
|
|
|
2013-04-16 23:59:08 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:57:27 -04:00
|
|
|
#endif
|