X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fchronovu_la8.c;h=4263fc36751d55718be25725f3d7d9c1e8a1ee5a;hb=a755b0e122105d934c4e7b97435420eda6df6e8e;hp=ad0b5d32fc2c1ccaf294fabdf7035cd977cecefe;hpb=06bd935e161dd273788ce9f1b455732fb91efd84;p=libsigrok.git diff --git a/src/output/chronovu_la8.c b/src/output/chronovu_la8.c index ad0b5d32..4263fc36 100644 --- a/src/output/chronovu_la8.c +++ b/src/output/chronovu_la8.c @@ -75,12 +75,14 @@ static uint8_t samplerate_to_divcount(uint64_t samplerate) return (SR_MHZ(100) / samplerate) - 1; } -static int init(struct sr_output *o) +static int init(struct sr_output *o, GHashTable *options) { struct context *ctx; struct sr_channel *ch; GSList *l; + (void)options; + if (!o || !o->sdi) return SR_ERR_ARG; @@ -101,7 +103,7 @@ static int init(struct sr_output *o) return SR_OK; } -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; @@ -181,9 +183,11 @@ static int cleanup(struct sr_output *o) return SR_OK; } -SR_PRIV struct sr_output_format output_chronovu_la8 = { +SR_PRIV struct sr_output_module output_chronovu_la8 = { .id = "chronovu-la8", - .description = "ChronoVu LA8", + .name = "ChronoVu LA8", + .desc = "ChronoVu LA8 native file format", + .options = NULL, .init = init, .receive = receive, .cleanup = cleanup,