iio: Allow mraa_iio_trigger_buffer to handle void* args
Previously, mraa_iio_trigger_buffer took a void* args but did not use this. Included implementation to allow user to pass a void* to this method and have the corresponding pointer returned in the interrupt handler. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -102,7 +102,7 @@ mraa_iio_context mraa_iio_init(int device);
|
||||
* @param args Arguments
|
||||
* @return Result of operation
|
||||
*/
|
||||
mraa_result_t mraa_iio_trigger_buffer(mraa_iio_context dev, void (*fptr)(char* data), void* args);
|
||||
mraa_result_t mraa_iio_trigger_buffer(mraa_iio_context dev, void (*fptr)(char*, void*), void* args);
|
||||
|
||||
/**
|
||||
* Get device name
|
||||
|
||||
Reference in New Issue
Block a user