X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fhex.c;h=428dd58494f09592a0a1e567f83791dd5ed07402;hb=d686c5ec462a4044e049931e57d60e9d08df8cde;hp=313dace8ff71aef10ebe2e39360ffd316ce75252;hpb=dddabe37052d0d8c7fbd2ac3e15861e556c4814f;p=libsigrok.git diff --git a/src/output/hex.c b/src/output/hex.c index 313dace8..428dd584 100644 --- a/src/output/hex.c +++ b/src/output/hex.c @@ -76,7 +76,7 @@ static int init(struct sr_output *o, GHashTable *options) } ctx = g_malloc0(sizeof(struct context)); - o->internal = ctx; + o->priv = ctx; ctx->trigger = -1; ctx->samples_per_line = spl; @@ -119,7 +119,7 @@ static GString *gen_header(const struct sr_output *o) int num_channels; char *samplerate_s; - ctx = o->internal; + ctx = o->priv; if (ctx->samplerate == 0) { if (sr_config_get(o->sdi->driver, o->sdi, NULL, SR_CONF_SAMPLERATE, &gvar) == SR_OK) { @@ -158,7 +158,7 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p *out = NULL; if (!o || !o->sdi) return SR_ERR_ARG; - if (!(ctx = o->internal)) + if (!(ctx = o->priv)) return SR_ERR_ARG; switch (packet->type) { @@ -241,7 +241,7 @@ static int cleanup(struct sr_output *o) if (!o) return SR_ERR_ARG; - if (!(ctx = o->internal)) + if (!(ctx = o->priv)) return SR_OK; g_free(ctx->channel_index); @@ -251,7 +251,7 @@ static int cleanup(struct sr_output *o) g_string_free(ctx->lines[i], TRUE); g_free(ctx->lines); g_free(ctx); - o->internal = NULL; + o->priv = NULL; return SR_OK; }