Private
Public Access
2
0

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:
Noel Eck
2017-08-30 10:56:09 -07:00
parent 1217c5c034
commit 65e30bf7d3
4 changed files with 13 additions and 12 deletions

View File

@@ -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