1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

talloc: Provide tests access to talloc_magic

Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Adrian Cochrane 2015-09-04 12:03:33 +12:00 committed by Jeremy Allison
parent f5135bda94
commit 906a26a2ab
2 changed files with 7 additions and 0 deletions

View File

@ -300,6 +300,11 @@ _PUBLIC_ int talloc_version_minor(void)
return TALLOC_VERSION_MINOR;
}
_PUBLIC_ int talloc_test_get_magic(void)
{
return talloc_magic;
}
static void (*talloc_log_fn)(const char *message);
_PUBLIC_ void talloc_set_log_fn(void (*log_fn)(const char *message))

View File

@ -47,6 +47,8 @@ extern "C" {
int talloc_version_major(void);
int talloc_version_minor(void);
/* This is mostly useful only for testing */
int talloc_test_get_magic(void);
/**
* @brief Define a talloc parent type