+#define tdb_brlock(tdb1, rw_type, offset, len, flags) \
+ tdb_brlock((struct tdb_context *)(tdb1), \
+ (rw_type), (offset), (len), (flags))
+
+#define tdb_brunlock(tdb1, rw_type, offset, len) \
+ tdb_brunlock((struct tdb_context *)(tdb1), (rw_type), (offset), (len))
+
+#define tdb_nest_lock(tdb1, offset, ltype, flags) \
+ tdb_nest_lock((struct tdb_context *)(tdb1), (offset), (ltype), (flags))
+
+#define tdb_nest_unlock(tdb1, offset, ltype) \
+ tdb_nest_unlock((struct tdb_context *)(tdb1), (offset), (ltype))
+
+#define tdb_allrecord_lock(tdb1, offset, flags, upgradable) \
+ tdb_allrecord_lock((struct tdb_context *)(tdb1), \
+ (offset), (flags), (upgradable))
+
+#define tdb_allrecord_unlock(tdb1, ltype) \
+ tdb_allrecord_unlock((struct tdb_context *)(tdb1), (ltype))
+
+#define tdb_allrecord_upgrade(tdb1, start) \
+ tdb_allrecord_upgrade((struct tdb_context *)(tdb1), (start))
+
+#define tdb_hash(tdb1, ptr, len) \
+ tdb_hash((struct tdb_context *)(tdb1), (ptr), (len))
+
+#define tdb_lock_gradual(tdb1, ltype, flags, off, len) \
+ tdb_lock_gradual((struct tdb_context *)(tdb1), \
+ (ltype), (flags), (off), (len))