tdb2: actually implement tdb_error().
[ccan] / ccan / tdb2 / tdb.c
index 09333a26801380fb232a2fc444eb11473de8805e..1dbbb7e93bdf46c16e8200abb9b5e0b3b3a885f4 100644 (file)
@@ -382,6 +382,11 @@ const char *tdb_errorstr(enum TDB_ERROR ecode)
        return "Invalid error code";
 }
 
+enum TDB_ERROR tdb_error(struct tdb_context *tdb)
+{
+       return tdb->last_error;
+}
+
 enum TDB_ERROR COLD tdb_logerr(struct tdb_context *tdb,
                               enum TDB_ERROR ecode,
                               enum tdb_log_level level,