Skip to content

Commit

Permalink
blocks/sinks/soapysdr: fix formatting in ffi cdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Feb 27, 2020
1 parent 1a9858e commit b06bf7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions radio/blocks/sinks/soapysdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ if not package.loaded['radio.blocks.sources.soapysdr'] then
double maximum;
} SoapySDRRange;

typedef struct
{
typedef struct {
size_t size;
char **keys;
char **vals;
Expand Down Expand Up @@ -94,12 +93,12 @@ if not package.loaded['radio.blocks.sources.soapysdr'] then

/* Device info */
char *SoapySDRDevice_getDriverKey(const SoapySDRDevice *device);
char *SoapySDRDevice_getHardwareKey(const SoapySDRDevice *device);
char *SoapySDRDevice_getHardwareKey(const SoapySDRDevice *device);
SoapySDRKwargs SoapySDRDevice_getHardwareInfo(const SoapySDRDevice *device);

/* Channel info */
size_t SoapySDRDevice_getNumChannels(const SoapySDRDevice *device, const int direction);
SoapySDRKwargs SoapySDRDevice_getChannelInfo(const SoapySDRDevice *device, const int direction, const size_t channel);
SoapySDRKwargs SoapySDRDevice_getChannelInfo(const SoapySDRDevice *device, const int direction, const size_t channel);

/* Sample rate */
int SoapySDRDevice_setSampleRate(SoapySDRDevice *device, const int direction, const size_t channel, const double rate);
Expand Down

0 comments on commit b06bf7b

Please sign in to comment.