vpn_ext_register_service()

Provide the list of callbacks for VPN service functions that are supported by the VPN Extension Provider library.

Synopsis:

#include <vpnext/vpn_ext_api.h>
 
VPN_EXT_PUBLIC errno_t vpn_ext_register_service(vpn_ext_context context, vpn_service_type_e service_type, const vpn_service_callbacks_t *callbacks)

Since:

BlackBerry 10.2.0

Arguments:

context

The VPN Extension context.

service_type

The VPN service adapter type.

callbacks

The structure that represents the callbacks.

Library:

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

Description:

These callbacks are used to start or stop a registered VPN service. Typically, these callbacks will be used to start or stop a 3rd party VPN daemon. The VPN service will be started or stopped under the control of the VPN Manager.

Returns:

EOK

Success.

EINVAL

One or more invalid parameters were specified.