Callback mechanism.
More...
|
| PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet | ProfisharkAPIAddNewDeviceCallback (ProfisharkApiCallback callback, void *context) |
| | Add a new function to be called when a new Profishark device is detected. More...
|
| |
| PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet | ProfisharkAPIRemoveNewDeviceCallback (ProfisharkApiCallback callback) |
| | Remove a function from the list of functions called when a new Profishark device is detected. More...
|
| |
| PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet | ProfisharkAPIAddDeviceGoneCallback (ProfisharkApiCallback callback, void *context) |
| | Add a new function to be called when a Profishark device is disconnected. More...
|
| |
| PROFISHARKAPI_API_DEPRECATED ProfisharkAPIRet | ProfisharkAPIRemoveDeviceGoneCallback (ProfisharkApiCallback callback) |
| | Remove a function from the list of functions called when a new Profishark device is disconnected. More...
|
| |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIAddGlobalCallback (ProfisharkApiGlobalCallbackType type, ProfisharkApiCallbackExt callback, void *context) |
| | Add a global callback function. More...
|
| |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIAddDeviceCallback (ProfisharkApiDeviceHandle handle, ProfisharkApiDeviceCallbackType type, ProfisharkApiCallbackExt callback, void *context) |
| | Add a device callback function. More...
|
| |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIRemoveGlobalCallback (ProfisharkApiGlobalCallbackType type, ProfisharkApiCallbackExt callback) |
| | Remove a global callback function. More...
|
| |
| PROFISHARKAPI_API ProfisharkAPIRet | ProfisharkAPIRemoveDeviceCallback (ProfisharkApiDeviceHandle handle, ProfisharkApiDeviceCallbackType type, ProfisharkApiCallbackExt callback) |
| | Remove a device callback function. More...
|
| |
Callback mechanism.
◆ ProfisharkApiCallback
◆ ProfisharkApiCallbackExt
Callback function.
- Parameters
-
◆ ProfisharkApiCallbackValue
Profishark callback value.
Opaque type used by callback functions. To be used, this needs to be cast to the proper type depending on the callback type
◆ ProfisharkApiDeviceCallbackType
\ brief Device specific callback types
| Enumerator |
|---|
| ProfisharkApiDeviceCallbackType_DiskDump | Function is called on direct capture events (capture start, capture stop). ProfisharkApiCallbackValue is to be cast as ProfisharkApiCallbackValue_DiskDump
|
| ProfisharkApiDeviceCallbackType_DiskDumpNewFile | Function is called when a new file has been created by direct capture. ProfisharkApiCallbackValue is to be cast as ProfisharkApiCallbackValue_DiskDumpNewFile
|
◆ ProfisharkApiGlobalCallbackType
\ brief Global callback types
| Enumerator |
|---|
| ProfisharkApiGlobalCallbackType_NewDevice | Function is called on device insertion. ProfisharkApiCallbackValue is not used
|
| ProfisharkApiGlobalCallbackType_DeviceRemoved | Function is called on device removal. ProfisharkApiCallbackValue is not used
|
◆ ProfisharkAPIAddDeviceCallback()
Add a device callback function.
- Parameters
-
| handle | a handle to the device |
| type | the type of callback to add. This defines when the function is called. |
| callback | the function to be called |
| context | a pointer passed to the callback function |
- Return values
-
| ProfisharkAPIRet_Success | on success |
◆ ProfisharkAPIAddDeviceGoneCallback()
Add a new function to be called when a Profishark device is disconnected.
- Parameters
-
| callback | the function to be called |
| context | the parameter passed to the function to be called |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_Exist | if the function is already registered |
- Deprecated:
- Deprecated, use ProfisharkAPIAddGlobalCallback
◆ ProfisharkAPIAddGlobalCallback()
Add a global callback function.
- Parameters
-
| type | the type of callback to add. This defines when the function is called. |
| callback | the function to be called |
| context | a pointer passed to the callback function |
- Return values
-
| ProfisharkAPIRet_Success | on success |
◆ ProfisharkAPIAddNewDeviceCallback()
Add a new function to be called when a new Profishark device is detected.
- Parameters
-
| callback | the function to be called |
| context | the parameter passed to the function to be called |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_Exist | if the function is already registered |
- Deprecated:
- Deprecated, use ProfisharkAPIAddGlobalCallback
◆ ProfisharkAPIRemoveDeviceCallback()
Remove a device callback function.
- Parameters
-
| handle | a handle to the device |
| type | the type of callback to remove. Must be the same as the one used for the ProfisharkAPIAddDeviceCallback call. |
| callback | the function to be removed |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NotExist | if the function was not registered |
◆ ProfisharkAPIRemoveDeviceGoneCallback()
Remove a function from the list of functions called when a new Profishark device is disconnected.
- Parameters
-
| callback | the function to be removed |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NotExist | if the function was not registered |
- Deprecated:
- Deprecated, use ProfisharkAPIRemoveGlobalCallback
◆ ProfisharkAPIRemoveGlobalCallback()
Remove a global callback function.
- Parameters
-
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NotExist | if the function was not registered |
◆ ProfisharkAPIRemoveNewDeviceCallback()
Remove a function from the list of functions called when a new Profishark device is detected.
- Parameters
-
| callback | the function to be removed |
- Return values
-
| ProfisharkAPIRet_Success | on success |
| ProfisharkAPIRet_NotExist | if the function was not registered |
- Deprecated:
- Deprecated, use ProfisharkAPIRemoveGlobalCallback