z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


smfi_setpriv

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

#include <libmilter/mfapi.h>
int smfi_setpriv(
	     SMFICTX *ctx,
	     void *privatedata
);

smfi_setpriv description

Set the private data pointer for this connection.

smfi_setpriv parameters

ctx
Opaque context structure.
privatedata
Pointer to private data. This value is returned by subsequent calls to smfi_getpriv using ctx.

smfi_setpriv result

smfi_setpriv returns MI_FAILURE if the context of ctx is not valid. Otherwise, it returns MI_SUCCESS.

Notes:
  1. There is only one private data pointer per connection; multiple calls to smfi_setpriv with different values cause previous values to be lost.
  2. Before a filter terminates it should release the private data and set the pointer to NULL.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014