2 <HEAD><TITLE>smfi_setpriv
</TITLE></HEAD>
5 $Id: smfi_setpriv.html,v 1.11 2006/12/21 18:30:35 ca Exp $
9 <TABLE border=
"0" cellspacing=
4 cellpadding=
4>
10 <!---------- Synopsis ----------->
11 <TR><TH valign=
"top" align=left width=
100>SYNOPSIS
</TH><TD>
13 #include
<libmilter/mfapi.h
>
19 Set the private data pointer for this connection.
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>
29 <TR align=
"left" valign=top
>
30 <TH width=
"80">Effects
</TH>
31 <TD>Sets the private data pointer for the context ctx.
</TD>
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.
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.
48 <!----------- Return values ---------->
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>
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
63 Before a filter terminates it should release the private data
64 and set the pointer to NULL.
73 Copyright (c)
2000-
2001,
2003 Sendmail, Inc. and its suppliers.
76 By using this file, you agree to the terms and conditions set