This is needed in all of the library, not only in the dbwrap_open part.
struct db_record;
struct db_context;
+enum dbwrap_lock_order {
+ DBWRAP_LOCK_ORDER_1 = 1,
+ DBWRAP_LOCK_ORDER_2 = 2,
+ DBWRAP_LOCK_ORDER_3 = 3
+};
+
/* The following definitions come from lib/dbwrap.c */
TDB_DATA dbwrap_record_get_key(const struct db_record *rec);
#include "system/filesys.h"
#include "lib/tdb_wrap/tdb_wrap.h"
#include "util_tdb.h"
+#include "dbwrap/dbwrap.h"
#include "dbwrap/dbwrap_ctdb.h"
#include "dbwrap/dbwrap_rbt.h"
#include "lib/param/param.h"
*/
bool db_is_local(const char *name);
-enum dbwrap_lock_order {
- DBWRAP_LOCK_ORDER_1 = 1,
- DBWRAP_LOCK_ORDER_2 = 2,
- DBWRAP_LOCK_ORDER_3 = 3
-};
-
/**
* Convenience function that will determine whether to
* open a tdb database via the tdb backend or via the ctdb
#ifndef __DBWRAP_PRIVATE_H__
#define __DBWRAP_PRIVATE_H__
-#include "dbwrap/dbwrap_open.h"
-
struct db_record {
struct db_context *db;
TDB_DATA key, value;