diff options
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/passdb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/include/passdb.h b/source/include/passdb.h index bd1d1e159b6..a79c8a0289f 100644 --- a/source/include/passdb.h +++ b/source/include/passdb.h @@ -27,6 +27,20 @@ Functions to be implemented by the new (v2) passdb API ****************************************************************/ +/* + * This next constant specifies the version number of the PASSDB interface + * this SAMBA will load. Increment this if *ANY* changes are made to the interface. + */ + +#define PASSDB_INTERFACE_VERSION 2 + +/* use this inside a passdb module */ +#define PDB_MODULE_VERSIONING_MAGIC \ +int pdb_version(void)\ +{\ + return PASSDB_INTERFACE_VERSION;\ +} + typedef struct pdb_context { struct pdb_methods *pdb_methods; |