consolidated function defs and impls

This commit is contained in:
Dimitri Stolnikov 2012-04-01 22:44:07 +02:00
parent e22c8a8378
commit 4c3a5f7397
2 changed files with 3 additions and 2 deletions

View File

@ -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
}

View File

@ -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;