int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn,
uint32_t srvid, TDB_DATA data);
+/*
+ fetch and lock a ctdb record. Underneath this will force the
+ dmaster for the record to be moved to the local node.
+
+ The lock is released when is talloc_free() is called on the
+ returned ctdb_record_handle.
+*/
+struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TDB_DATA key, TDB_DATA *data);
+
+/*
+ change the data in a record held with a ctdb_record_handle
+ if the new data is zero length, this implies a delete of the record
+ */
+int ctdb_record_store(struct ctdb_record_handle *rec, TDB_DATA data);
+
#endif