diff options
| author | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-04-02 23:09:14 +0200 |
|---|---|---|
| committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-04-02 23:09:14 +0200 |
| commit | 39482fee74034f722902916d36875df6927c568e (patch) | |
| tree | 3dbf5a9792c669ab5ba99869f251c85ec16cc7a3 /include | |
| parent | 030c787cfa1693dcc849aaec940c687fe0e96665 (diff) | |
introduce asynchronous streaming interface
this is an experimental feature
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtl-sdr.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
