From 39482fee74034f722902916d36875df6927c568e Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Mon, 2 Apr 2012 23:09:14 +0200 Subject: introduce asynchronous streaming interface this is an experimental feature --- include/rtl-sdr.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index f9f6b92..547022d 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -61,6 +61,12 @@ RTLSDR_API int rtlsdr_reset_buffer(rtlsdr_dev_t *dev); RTLSDR_API int rtlsdr_read_sync(rtlsdr_dev_t *dev, void *buf, int len, int *n_read); +typedef void(*rtlsdr_async_read_cb_t)(const char *buf, uint32_t len, void *context); + +RTLSDR_API int rtlsdr_wait_async(rtlsdr_dev_t *dev, rtlsdr_async_read_cb_t cb, void *context); + +RTLSDR_API int rtlsdr_cancel_async(rtlsdr_dev_t *dev); + #ifdef __cplusplus } #endif -- cgit v1.3.1