From 9d15dc565a0d09ad313180fe1286a26de834c792 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Sun, 1 Apr 2012 13:06:22 +0200 Subject: handle init/exit functions calling automatically inside the library --- include/rtl-sdr.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include') diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index 33370bc..8e8bf1b 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -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 -- cgit v1.3.1