(void)options;
- if (!(ctx = g_try_malloc(sizeof(struct context)))) {
- sr_err("%s: ctx malloc failed", __func__);
- return SR_ERR_MALLOC;
- }
+ ctx = g_malloc0(sizeof(struct context));
o->priv = ctx;
-
ctx->samplerate = 0;
ctx->num_samples = 0;
.id = "ols",
.name = "OLS",
.desc = "OpenBench Logic Sniffer",
+ .exts = (const char*[]){"ols", NULL},
.options = NULL,
.init = init,
.receive = receive,