SYNOPSIS |
#include <libmilter/mfapi.h> int smfi_version( unsigned int *pmajor, unsigned int *pminor, unsigned int *ppl );Get the (runtime) version of libmilter. | ||||||||
---|---|---|---|---|---|---|---|---|---|
DESCRIPTION |
| ||||||||
ARGUMENTS |
| ||||||||
RETURN VALUES | smfi_version returns MI_SUCCESS. |
SMFI_VERSION
.
A milter can check this macro to determine which functions to use
(at compile time via C preprocessor statements).
Using this macro and the
smfi_version()
function,
a milter can determine at runtime whether it has been (dynamically)
linked against the expected libmilter version.
To extract the major and minor version as well as the current patch level
from this macro, the macros
SM_LM_VRS_MAJOR(v)
,
SM_LM_VRS_MINOR(v)
, and
SM_LM_VRS_PLVL(v)
can be used, respectively.