X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=f0b5cae562db93b5b9bb8cc05607f36ad36556dc;hp=4ecda6a5f529729518b051a53db711f582fde6db;hb=012f68a0738e2190580f4639321d18ad5f4611c2;hpb=2a585ebca2a23c536520d854749fc6a813e9b12a diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 4ecda6a5..f0b5cae5 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -379,10 +379,12 @@ struct tdb_context { }; struct tdb_methods { - int (*tread)(struct tdb_context *, tdb_off_t, void *, tdb_len_t); - int (*twrite)(struct tdb_context *, tdb_off_t, const void *, tdb_len_t); - int (*oob)(struct tdb_context *, tdb_off_t, bool); - int (*expand_file)(struct tdb_context *, tdb_len_t); + enum TDB_ERROR (*tread)(struct tdb_context *, tdb_off_t, void *, + tdb_len_t); + enum TDB_ERROR (*twrite)(struct tdb_context *, tdb_off_t, const void *, + tdb_len_t); + enum TDB_ERROR (*oob)(struct tdb_context *, tdb_off_t, bool); + enum TDB_ERROR (*expand_file)(struct tdb_context *, tdb_len_t); void *(*direct)(struct tdb_context *, tdb_off_t, size_t, bool); };