smfi_version.html (302408) | smfi_version.html (168515) |
---|---|
1<HTML> 2<HEAD><TITLE>smfi_version()</TITLE></HEAD> 3<BODY> 4<!-- | 1<HTML> 2<HEAD><TITLE>smfi_version()</TITLE></HEAD> 3<BODY> 4<!-- |
5$Id: smfi_version.html,v 1.7 2013-11-22 20:51:39 ca Exp $ | 5$Id: smfi_version.html,v 1.5 2007/03/22 17:30:57 ca Exp $ |
6--> 7<H1>smfi_version()</H1> 8 9<TABLE BORDER="0" CELLSPACING=4 CELLPADDING=4> 10<!---------- Synopsis -----------> 11<TR><TH VALIGN="TOP" ALIGN=LEFT WIDTH=100>SYNOPSIS</TH><TD> 12<PRE> 13#include <libmilter/mfapi.h> --- 40 unchanged lines hidden (view full) --- 54<TH VALIGN="TOP" ALIGN=LEFT>RETURN VALUES</TH> 55<TD>smfi_version returns MI_SUCCESS.</TD> 56</TR> 57 58</TABLE> 59 60Note: the compile time version of libmilter is available in the macro 61<CODE>SMFI_VERSION</CODE>. | 6--> 7<H1>smfi_version()</H1> 8 9<TABLE BORDER="0" CELLSPACING=4 CELLPADDING=4> 10<!---------- Synopsis -----------> 11<TR><TH VALIGN="TOP" ALIGN=LEFT WIDTH=100>SYNOPSIS</TH><TD> 12<PRE> 13#include <libmilter/mfapi.h> --- 40 unchanged lines hidden (view full) --- 54<TH VALIGN="TOP" ALIGN=LEFT>RETURN VALUES</TH> 55<TD>smfi_version returns MI_SUCCESS.</TD> 56</TR> 57 58</TABLE> 59 60Note: the compile time version of libmilter is available in the macro 61<CODE>SMFI_VERSION</CODE>. |
62To extract the major and minor version as well as the current patch level 63from this macro, the macros 64<CODE>SM_LM_VRS_MAJOR(v)</CODE>, 65<CODE>SM_LM_VRS_MINOR(v)</CODE>, and 66<CODE>SM_LM_VRS_PLVL(v)</CODE> 67can be used, respectively. 68A milter can check the 69<CODE>SMFI_VERSION</CODE> 70macro to determine which functions to use | 62A milter can check this macro to determine which functions to use |
71(at compile time via C preprocessor statements). 72Using this macro and the 73<CODE>smfi_version()</CODE> 74function, 75a milter can determine at runtime whether it has been (dynamically) 76linked against the expected libmilter version. | 63(at compile time via C preprocessor statements). 64Using this macro and the 65<CODE>smfi_version()</CODE> 66function, 67a milter can determine at runtime whether it has been (dynamically) 68linked against the expected libmilter version. |
77Such a function should only compare the major and minor version, 78not the patch level, 79i.e., the libmilter library will be compatible despite 80different patch levels. | 69To extract the major and minor version as well as the current patch level 70from this macro, the macros 71<CODE>SM_LM_VRS_MAJOR(v)</CODE>, 72<CODE>SM_LM_VRS_MINOR(v)</CODE>, and 73<CODE>SM_LM_VRS_PLVL(v)</CODE> 74can be used, respectively. |
81 82 83<HR SIZE="1"> 84<FONT SIZE="-1"> | 75 76 77<HR SIZE="1"> 78<FONT SIZE="-1"> |
85Copyright (c) 2006-2008 Proofpoint, Inc. and its suppliers. | 79Copyright (c) 2006, 2007 Sendmail, Inc. and its suppliers. |
86All rights reserved. 87<BR> 88By using this file, you agree to the terms and conditions set 89forth in the LICENSE. 90</FONT> 91</BODY> 92</HTML> | 80All rights reserved. 81<BR> 82By using this file, you agree to the terms and conditions set 83forth in the LICENSE. 84</FONT> 85</BODY> 86</HTML> |