smfi_setpriv.3n (2010 09)
s
smfi_setpriv(3N) smfi_setpriv(3N)
NAME
smfi_setpriv() - sets the private data pointer for the sendmail connection
SYNOPSIS
#include <libmilter/mfapi.h>
int smfi_setpriv(
SMFICTX *ctx,
void *privatedata
);
PARAMETERS
ctx Specifies the opaque context structure.
privatedata Pointer to the private data. This value is returned by subsequent calls to the
smfi_getpriv()
function using the ctx argument.
DESCRIPTION
The
smfi_setpriv()
routine sets the private data pointer for the context ctx . The
smfi_setpriv()
routine can be called in any xxfi_*() callback functions.
Notes
A single private data pointer exists for a connection. Multiple calls to
smfi_setpriv()
with different
values result in loss of old values. Before a filter terminates, it must release the private data and set the
pointer to a
NULL value.
RETURN VALUE
The
smfi_setpriv() routine returns
MI_FAILURE if ctx is an invalid context.
smfi_setpriv() returns MI_SUCCESS if ctx is a valid context.
AUTHOR
The
smfi_setpriv() routine was developed by the Sendmail Inc.
SEE ALSO
smfi_getsymval(3N), smfi_setmlreply(3N), smfi_setreply(3N), smfi_getpriv(3N).
Sendmail 8.13.3 Programmer’s Guide on
http://www.hp.com/go/hpux-networking-docs
.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1