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:
parent
f5135bda94
commit
906a26a2ab
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user