diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-08-20 13:43:42 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-08-24 16:29:58 +1000 |
commit | 6c9ace27c591e48fdffdf5add6b4e11b2f669922 (patch) | |
tree | 3aac85ba1c52b0795bc543cc80d0b0657e3a8611 /lib/talloc/talloc.h | |
parent | 9baacbbbdf766b87512f6d0f518f91decbbf2e2b (diff) | |
download | samba-6c9ace27c591e48fdffdf5add6b4e11b2f669922.tar.gz samba-6c9ace27c591e48fdffdf5add6b4e11b2f669922.tar.bz2 samba-6c9ace27c591e48fdffdf5add6b4e11b2f669922.zip |
talloc: add defines and functions for TALLOC_MAJOR/MINOR_VERSION
We also use the major and minor versions in the TALLOC_MAGIC,
so that we can detect if two conflicting versions of talloc
are loaded in one process. In this case we use talloc_log() to
output a very useful debug message before we call
talloc_abort().
metze
Diffstat (limited to 'lib/talloc/talloc.h')
-rw-r--r-- | lib/talloc/talloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index 54be1699dc..8241eeb306 100644 --- a/lib/talloc/talloc.h +++ b/lib/talloc/talloc.h @@ -29,6 +29,12 @@ #include <stdio.h> #include <stdarg.h> +#define TALLOC_VERSION_MAJOR 2 +#define TALLOC_VERSION_MINOR 0 + +int talloc_version_major(void); +int talloc_version_minor(void); + /* this is only needed for compatibility with the old talloc */ typedef void TALLOC_CTX; |