mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-06-26 13:07:50 +02:00
handle init/exit functions calling
automatically inside the library
This commit is contained in:
@ -27,12 +27,6 @@ extern "C" {
|
||||
|
||||
typedef int rtlsdr_dev_t;
|
||||
|
||||
/* must be called once before using any other library functions */
|
||||
int rtlsdr_init(void);
|
||||
|
||||
/* must be called once at application shutdown */
|
||||
void rtlsdr_exit(void);
|
||||
|
||||
uint32_t rtlsdr_get_device_count(void);
|
||||
|
||||
const char *rtlsdr_get_device_name(uint32_t index);
|
||||
@ -66,10 +60,6 @@ int rtlsdr_reset_buffer(rtlsdr_dev_t *dev);
|
||||
|
||||
int rtlsdr_read_sync(rtlsdr_dev_t *dev, void *buf, uint32_t len, uint32_t *n_read);
|
||||
|
||||
typedef void(*rtlsdr_async_read_cb_t)(const char *buf, uint32_t len, void *ctx);
|
||||
|
||||
int rtlsdr_async_loop(rtlsdr_dev_t *dev, rtlsdr_async_read_cb_t cb, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user