X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Ftdb%2Ftdb.h;h=43282e57ff8e824a80fdb784d53ab640c051cac3;hb=8f4a253ce07435870b61687e487df67a2ee7e19d;hp=628118172e807ed10762f631bae0b8168fe37f38;hpb=7104b7bc2e7f9829891477dbb04a9df926a656a7;p=ccan diff --git a/ccan/tdb/tdb.h b/ccan/tdb/tdb.h index 62811817..43282e57 100644 --- a/ccan/tdb/tdb.h +++ b/ccan/tdb/tdb.h @@ -30,6 +30,14 @@ extern "C" { #endif +#ifndef _SAMBA_BUILD_ +/* For mode_t */ +#include +/* For O_* flags. */ +#include +/* For sig_atomic_t. */ +#include +#endif /* flags to tdb_store() */ #define TDB_REPLACE 1 /* Unused */ @@ -129,6 +137,7 @@ int tdb_fd(struct tdb_context *tdb); tdb_log_func tdb_log_fn(struct tdb_context *tdb); void *tdb_get_logging_private(struct tdb_context *tdb); int tdb_transaction_start(struct tdb_context *tdb); +int tdb_transaction_prepare_commit(struct tdb_context *tdb); int tdb_transaction_commit(struct tdb_context *tdb); int tdb_transaction_cancel(struct tdb_context *tdb); int tdb_transaction_recover(struct tdb_context *tdb);