Commit a842bbda authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

c++ize the ydb and locktree include files refs[t:2511]

git-svn-id: file:///svn/toku/tokudb@19808 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4f8c59dc
......@@ -16,6 +16,10 @@
#include <brttypes.h>
#include <rangetree.h>
#if defined(__cplusplus)
extern "C" {
#endif
#if !defined(TOKU_LOCKTREE_DEFINE)
#define TOKU_LOCKTREE_DEFINE
typedef struct __toku_lock_tree toku_lock_tree;
......@@ -72,4 +76,9 @@ void toku_idlth_clear (toku_idlth* idlth);
BOOL toku_idlth_is_empty (toku_idlth* idlth);
#if defined(__cplusplus)
}
#endif
#endif
......@@ -27,6 +27,10 @@
#include "toku_assert.h"
#if defined(__cplusplus)
extern "C" {
#endif
/** Errors returned by lock trees */
typedef enum {
TOKU_LT_INCONSISTENT=-1, /**< The member data are in an inconsistent
......@@ -534,4 +538,8 @@ toku_range_tree* toku__lt_ifexist_selfread(toku_lock_tree* tree, TXNID txn);
toku_range_tree* toku__lt_ifexist_selfwrite(toku_lock_tree* tree, TXNID txn);
#if defined(__cplusplus)
}
#endif
#endif
......@@ -17,6 +17,9 @@
#include <brttypes.h>
#include <locktree.h>
#if defined(__cplusplus)
extern "C" {
#endif
#if !defined(TOKU_LOCKTREE_DEFINE)
#define TOKU_LOCKTREE_DEFINE
......@@ -74,5 +77,10 @@ void toku_lth_delete (toku_lth* table, toku_lock_tree* key);
void toku_lth_close (toku_lth* table);
int toku_lth_insert (toku_lth* table, toku_lock_tree* key);
#if defined(__cplusplus)
}
#endif
#endif
......@@ -16,6 +16,10 @@
#include <brttypes.h>
#include <rangetree.h>
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct __rt_forest rt_forest;
struct __rt_forest {
TXNID hash_key;
......@@ -68,4 +72,8 @@ void toku_rth_clear (toku_rth* rth);
BOOL toku_rth_is_empty (toku_rth* rth);
#if defined(__cplusplus)
}
#endif
#endif
......@@ -23,6 +23,10 @@
#include <brttypes.h>
#include <db.h>
#if defined(__cplusplus)
extern "C" {
#endif
struct __toku_point;
#if !defined(__TOKU_POINT)
#define __TOKU_POINT
......@@ -237,4 +241,9 @@ int toku_rt_get_size(toku_range_tree* tree, u_int32_t* size);
int toku_rt_iterate(toku_range_tree* tree, int (*f)(toku_range*,void*), void* extra);
#if defined(__cplusplus)
}
#endif
#endif /* #if !defined(TOKU_RANGE_TREE_H) */
......@@ -13,6 +13,10 @@
#include "../newbrt/minicron.h"
#include <limits.h>
#if defined(__cplusplus)
extern "C" {
#endif
struct __toku_lock_tree;
struct __toku_db_internal {
......@@ -199,4 +203,8 @@ struct __toku_dbc_internal {
int toku_db_pre_acquire_table_lock(DB *db, DB_TXN *txn, BOOL just_lock);
#if defined(__cplusplus)
}
#endif
#endif
......@@ -3,6 +3,10 @@
#if !defined(TOKU_YDB_INTERFACE_H)
#define TOKU_YDB_INTERFACE_H
#if defined(__cplusplus)
extern "C" {
#endif
// Initialize the ydb library globals.
// Called when the ydb library is loaded.
int toku_ydb_init(void);
......@@ -24,4 +28,8 @@ int toku_test_db_redirect_dictionary(DB * db, char * dname_of_new_file, DB_TXN *
uint64_t toku_test_get_latest_lsn(DB_ENV *env) __attribute__((__visibility__("default")));
#if defined(__cplusplus)
}
#endif
#endif
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