smfi_getpriv Function

Purpose

The smfi_getpriv function fetches the connection-specific data pointer for this connection.

Syntax

#include <libmilter/mfapi.h>
void* smfi_getpriv(
SMFICTX *ctx
);

Description

The smfi_getpriv function can be called in any of the xxfi_* callback functions.

Arguments

Table 1. Arguments
Item Description
ctx The opaque context structure is maintained in the libmilter parameter.

Return values

The smfi_getpriv function that is stored by returns the private data pointer stored by a call before the smfi_setpriv function. Otherwise, the smfi_setpriv function returns NULL if the value is not set.

Related information

libmilter_smfi_setpriv.html