mirror of
https://github.com/samba-team/samba.git
synced 2025-06-23 11:17:06 +03:00
This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 lines
272 B
C
11 lines
272 B
C
#include "external-agent.h"
|
|
#include "tdb1_private.h"
|
|
|
|
enum agent_return external_agent_needs_rec(struct tdb_context *tdb)
|
|
{
|
|
if (tdb->flags & TDB_VERSION1)
|
|
return tdb1_needs_recovery(tdb) ? SUCCESS : FAILED;
|
|
else
|
|
return tdb_needs_recovery(tdb) ? SUCCESS : FAILED;
|
|
}
|