Expose ether_input_oncpu()
[dragonfly.git] / contrib / sendmail-8.14 / libmilter / docs / smfi_setpriv.html
blob1c287ebb10d658d1e4a5a00791e48d64df1afd9c
1 <HTML>
2 <HEAD><TITLE>smfi_setpriv</TITLE></HEAD>
3 <BODY>
4 <!--
5 $Id: smfi_setpriv.html,v 1.11 2006/12/21 18:30:35 ca Exp $
6 -->
7 <H1>smfi_setpriv</H1>
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 &lt;libmilter/mfapi.h&gt;
14 int smfi_setpriv(
15 SMFICTX *ctx,
16 void *privatedata
18 </PRE>
19 Set the private data pointer for this connection.
20 </TD></TR>
22 <!----------- Description ---------->
23 <TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
24 <TABLE border="1" cellspacing=1 cellpadding=4>
25 <TR align="left" valign=top>
26 <TH width="80">Called When</TH>
27 <TD>smfi_setpriv may be called in any of the xxfi_* callbacks.</TD>
28 </TR>
29 <TR align="left" valign=top>
30 <TH width="80">Effects</TH>
31 <TD>Sets the private data pointer for the context ctx.</TD>
32 </TR>
33 </TABLE>
35 <!----------- Arguments ---------->
36 <TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
37 <TABLE border="1" cellspacing=0>
38 <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
39 <TR valign="top"><TD>ctx</TD>
40 <TD>Opaque context structure.
41 </TD></TR>
42 <TR valign="top"><TD>privatedata</TD>
43 <TD>Pointer to private data. This value will be returned by subsequent calls to <A href="smfi_getpriv.html">smfi_getpriv</A> using ctx.
44 </TD></TR>
45 </TABLE>
46 </TD></TR>
48 <!----------- Return values ---------->
49 <TR>
50 <TH valign="top" align=left>RETURN VALUES</TH>
52 <TD>smfi_setpriv returns MI_FAILURE if ctx is an invalid context.
53 Otherwise, it returns MI_SUCCESS.</TD>
54 </TR>
56 <TR>
57 <TH valign="top" align=left>NOTES</TH>
59 <TD>There is only one private data pointer per connection; multiple
60 calls to smfi_setpriv with different values will cause previous values
61 to be lost.
62 <P>
63 Before a filter terminates it should release the private data
64 and set the pointer to NULL.
65 </TD>
67 </TR>
69 </TABLE>
71 <HR size="1">
72 <FONT size="-1">
73 Copyright (c) 2000-2001, 2003 Sendmail, Inc. and its suppliers.
74 All rights reserved.
75 <BR>
76 By using this file, you agree to the terms and conditions set
77 forth in the LICENSE.
78 </FONT>
79 </BODY>
80 </HTML>