X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fbinary.c;h=7c8fa105e80eb7819d58dae990b785017eac304b;hb=deb7615262ac4f9cc0750a08351afa7cbf9c34d5;hp=6e2531d1a252af1e7a92ed63e14c0b2783c0824f;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/output/binary.c b/src/output/binary.c index 6e2531d1..7c8fa105 100644 --- a/src/output/binary.c +++ b/src/output/binary.c @@ -14,19 +14,19 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ +#include #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "output/binary" -static int receive(struct sr_output *o, const struct sr_datafeed_packet *packet, +static int receive(const struct sr_output *o, const struct sr_datafeed_packet *packet, GString **out) { const struct sr_datafeed_logic *logic; @@ -42,8 +42,12 @@ static int receive(struct sr_output *o, const struct sr_datafeed_packet *packet, return SR_OK; } -SR_PRIV struct sr_output_format output_binary = { +SR_PRIV struct sr_output_module output_binary = { .id = "binary", - .description = "Raw binary", + .name = "Binary", + .desc = "Raw binary logic data", + .exts = NULL, + .flags = 0, + .options = NULL, .receive = receive, };