libtiepie-hw  1.1.13

Functions to set callbacks that are triggered when the device list is changed. More...

Collaboration diagram for Callbacks:

Functions

TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_added (tiepie_hw_devicelist_callback callback, void *data)
 Set a callback function which is called when a device is added to the device list. More...
 
TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_removed (tiepie_hw_devicelist_callback callback, void *data)
 Set a callback function which is called when a device is removed from the device list. More...
 
TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_can_open_changed (tiepie_hw_devicelist_callback callback, void *data)
 Set a callback function which is called when the device can open property changes. More...
 

Detailed Description

Functions to set callbacks that are triggered when the device list is changed.

Function Documentation

◆ tiepie_hw_devicelist_set_callback_device_added()

TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_added ( tiepie_hw_devicelist_callback  callback,
void *  data 
)

Set a callback function which is called when a device is added to the device list.

Parameters
[in]callbackA pointer to the callback function. Use NULL to disable.
[in]dataOptional user data.
Status values
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED
TIEPIE_HW_STATUS_SUCCESS
Since
1.0

◆ tiepie_hw_devicelist_set_callback_device_removed()

TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_removed ( tiepie_hw_devicelist_callback  callback,
void *  data 
)

Set a callback function which is called when a device is removed from the device list.

Parameters
[in]callbackA pointer to the callback function. Use NULL to disable.
[in]dataOptional user data.
Status values
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED
TIEPIE_HW_STATUS_SUCCESS
Since
1.0

◆ tiepie_hw_devicelist_set_callback_device_can_open_changed()

TIEPIE_HW_API void tiepie_hw_devicelist_set_callback_device_can_open_changed ( tiepie_hw_devicelist_callback  callback,
void *  data 
)

Set a callback function which is called when the device can open property changes.

Parameters
[in]callbackA pointer to the callback function. Use NULL to disable.
[in]dataOptional user data.
Status values
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED
TIEPIE_HW_STATUS_SUCCESS
Since
1.0