Skip to content

Commit

Permalink
blocks/sources/uhd: group opaque handle typedefs together in ffi cdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Feb 27, 2020
1 parent 107109a commit ec134c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions radio/blocks/sources/uhd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ if not package.loaded['radio.blocks.sinks.uhd'] then
typedef struct uhd_tx_streamer* uhd_tx_streamer_handle;
typedef struct uhd_rx_metadata_t* uhd_rx_metadata_handle;
typedef struct uhd_tx_metadata_t* uhd_tx_metadata_handle;
typedef struct uhd_meta_range_t* uhd_meta_range_handle;
typedef struct uhd_string_vector_t* uhd_string_vector_handle;

/* Structures and enums */
typedef enum {
Expand Down Expand Up @@ -147,12 +149,6 @@ if not package.loaded['radio.blocks.sinks.uhd'] then
UHD_ERROR_UNKNOWN = 100
} uhd_error;

struct uhd_meta_range_t;
typedef struct uhd_meta_range_t* uhd_meta_range_handle;

struct uhd_string_vector_t;
typedef struct uhd_string_vector_t* uhd_string_vector_handle;

/* Functions */
uhd_error uhd_usrp_make(uhd_usrp_handle *h, const char *args);
uhd_error uhd_usrp_free(uhd_usrp_handle *h);
Expand Down

0 comments on commit ec134c2

Please sign in to comment.