consolidated function defs and impls

master
Dimitri Stolnikov 13 years ago
parent e22c8a8378
commit 4c3a5f7397
  1. 2
      include/rtl-sdr.h
  2. 3
      src/rtl-sdr.c

@ -58,7 +58,7 @@ int rtlsdr_get_sample_rate(rtlsdr_dev_t *dev);
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);
int rtlsdr_read_sync(rtlsdr_dev_t *dev, void *buf, int len, int *n_read);
#ifdef __cplusplus
}

@ -30,6 +30,7 @@
#include "tuner_fc0012.h"
#include "tuner_fc0013.h"
#include "tuner_fc2580.h"
#include "rtl-sdr.h"
typedef struct rtlsdr_tuner {
int(*init)(void *);
@ -579,7 +580,7 @@ const char *rtlsdr_get_device_name(uint32_t index)
return "";
}
rtlsdr_dev_t *rtlsdr_open(int index)
rtlsdr_dev_t *rtlsdr_open(uint32_t index)
{
int r;
int i;

Loading…
Cancel
Save