Skip to content

Commit

Permalink
blocks/sources/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 3da7e37 commit 6c8f986
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions radio/blocks/sources/soapysdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ if not package.loaded['radio.blocks.sinks.soapysdr'] then
double maximum;
} SoapySDRRange;

typedef struct
{
typedef struct {
size_t size;
char **keys;
char **vals;
Expand Down Expand Up @@ -108,12 +107,12 @@ if not package.loaded['radio.blocks.sinks.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 6c8f986

Please sign in to comment.