vpn_ext_callback_t

Callback function prototype.

Synopsis:

#include <vpnext/vpn_ext_type.h>
 
typedef errno_t(* vpn_ext_callback_t)(vpn_ext_context context, char *in_buffer, unsigned int in_buffer_len, char **pOut_buffer, unsigned int *pOut_buffer_len);

Arguments:

context

The VPN Extension context.

in_buffer

The input message to the callback.

in_buffer_len

The input message length.

pOut_buffer

The output message from the callback. If this parameter is set to NULL, then there is no message to return. If it's set to in_buffer, then the input buffer is reused for output. If it's not set to either of these values, then the buffer should be allocated by the callback function. After the buffer is used, it will be freed by the caller after the message is sent to the VPN Manager.

pOut_buffer_len

The output message length.

Since:

BlackBerry 10.2.0

Library:

libvpn_ext (For the qcc command, use the -l vpn_ext option to link against this library)

Description: