LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages

Description

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

LibTiePie can inform the calling application that the device list is changed in different ways:

Functions

void LstSetCallbackDeviceAdded (TpCallback_t pCallback, void *pData)
 Set a callback function which is called when a device is added to the device list. More...
 
void LstSetCallbackDeviceRemoved (TpCallback_t pCallback, void *pData)
 Set a callback function which is called when a device is removed from the device list. More...
 
void LstSetEventDeviceAdded (int fdEvent)
 Set an event file descriptor which is set when a device is added to the device list. More...
 
void LstSetEventDeviceRemoved (int fdEvent)
 Set an event file descriptor which is set when a device is removed from the device list. More...
 
void LstSetEventDeviceAdded (HANDLE hEvent)
 Set an event object handle which is set when a device is added to the device list. More...
 
void LstSetEventDeviceRemoved (HANDLE hEvent)
 Set an event object handle which is set when a device is removed from the device list. More...
 
void LstSetMessageDeviceAdded (HWND hWnd)
 Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEADDED message is sent when a device is added to the device list. More...
 
void LstSetMessageDeviceRemoved (HWND hWnd)
 Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEREMOVED message is sent when a device is removed from the device list. More...
 

Function Documentation

void LstSetCallbackDeviceAdded ( TpCallback_t  pCallback,
void *  pData 
)

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

Parameters
pCallbackA pointer to the callback function. Use NULL to disable.
pDataOptional user data.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetCallbackDeviceRemoved ( TpCallback_t  pCallback,
void *  pData 
)

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

Parameters
pCallbackA pointer to the callback function. Use NULL to disable.
pDataOptional user data.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetEventDeviceAdded ( int  fdEvent)

Set an event file descriptor which is set when a device is added to the device list.

Parameters
fdEventAn event file descriptor. Use <0 to disable.
Note
This function is only available on GNU/Linux.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetEventDeviceRemoved ( int  fdEvent)

Set an event file descriptor which is set when a device is removed from the device list.

Parameters
fdEventan event file descriptor. Use <0 to disable.
Note
This function is only available on GNU/Linux.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetEventDeviceAdded ( HANDLE  hEvent)

Set an event object handle which is set when a device is added to the device list.

Parameters
hEventA handle to the event object. Use NULL to disable.
Note
This function is only available on Windows.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetEventDeviceRemoved ( HANDLE  hEvent)

Set an event object handle which is set when a device is removed from the device list.

Parameters
hEventA handle to the event object. Use NULL to disable.
Note
This function is only available on Windows.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetMessageDeviceAdded ( HWND  hWnd)

Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEADDED message is sent when a device is added to the device list.

The parameters of the message contain the following:

  • wParam contains the device types.
  • lParam contains the serial number of the added device.
Parameters
hWndA handle to the window whose window procedure is to receive the message. Use NULL to disable.
Note
This function is only available on Windows.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0
void LstSetMessageDeviceRemoved ( HWND  hWnd)

Set a window handle to which a WM_LIBTIEPIE_LST_DEVICEREMOVED message is sent when a device is removed from the device list.

The parameters of the message contain the following:

  • wParam contains the device types.
  • lParam contains the serial number of the removed device.
Parameters
hWndA handle to the window whose window procedure is to receive the message. Use NULL to disable.
Note
This function is only available on Windows.
Status values
SUCCESSThe function executed successfully.
Since
0.4.0