2 <head><title>smfi_setpriv
</title></head>
6 <table border=
"0" cellspacing=
4 cellpadding=
4>
7 <!---------- Synopsis ----------->
8 <tr><th valign=
"top" align=left width=
150>SYNOPSIS
</th><td>
10 #include
<libmilter/mfapi.h
>
16 Set the private data pointer for this connection.
19 <!----------- Description ---------->
20 <tr><th valign=
"top" align=left
>DESCRIPTION
</th><td>
21 <table border=
"1" cellspacing=
1 cellpadding=
4>
22 <tr align=
"left" valign=top
>
23 <th width=
"80">Called When
</th>
24 <td>smfi_setpriv may be called in any of the xxfi_* callbacks.
</td>
26 <tr align=
"left" valign=top
>
27 <th width=
"80">Effects
</th>
28 <td>Sets the private data pointer for the context ctx.
</td>
32 <!----------- Arguments ---------->
33 <tr><th valign=
"top" align=left
>ARGUMENTS
</th><td>
34 <table border=
"1" cellspacing=
0>
35 <tr bgcolor=
"#dddddd"><th>Argument
</th><th>Description
</th></tr>
36 <tr valign=
"top"><td>ctx
</td>
37 <td>Opaque context structure.
39 <tr valign=
"top"><td>privatedata
</td>
40 <td>Pointer to private data. This value will be returned by subsequent calls to
<a href=
"smfi_getpriv.html">smfi_getpriv
</a> using ctx.
45 <!----------- Return values ---------->
47 <th valign=
"top" align=left
>RETURN VALUES
</th>
49 <td>smfi_setpriv returns MI_FAILURE if ctx is an invalid context.
50 Otherwise, it returns MI_SUCCESS.
</td>
54 <th valign=
"top" align=left
>NOTES
</th>
56 <td>There is only one private data pointer per connection; multiple
57 calls to smfi_setpriv with different values will cause previous values
60 Before a filter terminates it should release the private data
61 and set the pointer to NULL.
70 Copyright (c)
2000-
2001,
2003 Sendmail, Inc. and its suppliers.
73 By using this file, you agree to the terms and conditions set