All Files Functions Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
BconAdapterEnumerator.h File Reference

Defines the enumeration interface of the BCON adapter. More...

#include "BconAdapterDefines.h"
#include "BconAdapterTypes.h"

Typedefs

typedef BCONSTATUS(BCON_ADAPTER_CALL * PFUNC_BCON_ADAPTER_DISCOVERY_CALLBACK )(const char deviceId[], uintptr_t userContext)
 Discovery callback function. Call this function for each device present. The callee opens the connection to the camera device to retrieve further information if needed. More...
 

Functions

BCONSTATUS BCON_ADAPTER_CALL BconAdapterStartDiscovery (PFUNC_BCON_ADAPTER_DISCOVERY_CALLBACK pCallback, uintptr_t userContext)
 Discovers camera devices. This function should implement a complete device enumeration or provide static information, e.g. read from a config file. More...
 

Detailed Description

Defines the enumeration interface of the BCON adapter.

Typedef Documentation

typedef BCONSTATUS(BCON_ADAPTER_CALL * PFUNC_BCON_ADAPTER_DISCOVERY_CALLBACK)(const char deviceId[], uintptr_t userContext)

Discovery callback function. Call this function for each device present. The callee opens the connection to the camera device to retrieve further information if needed.

Parameters
[in]deviceIdA string that identifies the device just found. The string is UTF-8 encoded, zero-terminated, contains less than 255 characters, and only printable characters.
[in]userContextUser context handed to the call of BconAdapterStartDiscovery().
Returns
Status of processing the passed device ID.

Function Documentation

BCONSTATUS BCON_ADAPTER_CALL BconAdapterStartDiscovery ( PFUNC_BCON_ADAPTER_DISCOVERY_CALLBACK  pCallback,
uintptr_t  userContext 
)

Discovers camera devices. This function should implement a complete device enumeration or provide static information, e.g. read from a config file.

Parameters
[in]pCallbackPointer to the callback interface.
[in]userContextUser defined type returned in callback.
Returns
Status of device discovery.
Return values
BCON_OKon success.
BCON_E_NOT_FOUNDif no information is available.
Anyother BCON adapter error code otherwise.
Thread Safety:
This function must be thread-safe.
Note
This function must be implemented.

BCONAdapterAPI 3.0
© 2016-2017 Basler AG (Tue May 30 2017 17:24:55)