]> pd.if.org Git - nbds/blobdiff - include/txn.h
generic interface for map-like data structures
[nbds] / include / txn.h
index 54928cbac8a6e804bf8af743928da8d68c8e0bd8..c23c59b8548085e8f09aa4b07d1bd428896be634 100644 (file)
@@ -4,12 +4,12 @@
  */
 #ifndef TXN_H
 #define TXN_H
-#include "struct.h"
+#include "map.h"
 
 typedef enum { TXN_READ_WRITE, TXN_READ_ONLY, TXN_BLIND_WRITE } txn_access_t;
 typedef enum { TXN_DIRTY_READ, TXN_READ_COMMITTED, TXN_REPEATABLE_READ } txn_isolation_t;
 
 typedef struct txn txn_t;
 
-txn_t *txn_begin (txn_access_t access, txn_isolation_t isolation, hashtable_t *ht);
+txn_t *txn_begin (txn_access_t access, txn_isolation_t isolation, map_t *map);
 #endif//TXN_H