bt_opp_init()

Initialize the Bluetooth Object Push Profile (OPP) library and allocate the required resources for the library.

Synopsis:

int bt_opp_init(bt_opp_callbacks_t *callbacks)

Since:

BlackBerry 10.2.0

Arguments:

callbacks

A list of callback functions that are invoked during an OPP transfer.

Library:

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

Description:

This function must be called before you call any other functions in this file. A corresponding call to the bt_opp_deinit() function must be made when you have completed using functionality from this file.

Returns:

0 is returned upon success, -1 with the errno set otherwise. Any errno value other than the following indicates that a system error has occurred:
  • EBUSY: bt_opp_init() has already been called.
  • ENOMEM: There was insufficient memory to allocate required structures.