]> sigrok.org Git - libsigrok.git/blobdiff - src/output/ols.c
output: Rename instance private storage pointer to priv.
[libsigrok.git] / src / output / ols.c
index 8c9cca8d33789954849d04e73129601e813c5f7c..8d68bdaf91e728639bd560c6c0474fb6fe51a280 100644 (file)
@@ -48,7 +48,7 @@ static int init(struct sr_output *o, GHashTable *options)
                sr_err("%s: ctx malloc failed", __func__);
                return SR_ERR_MALLOC;
        }
-       o->internal = ctx;
+       o->priv = ctx;
 
        ctx->samplerate = 0;
        ctx->num_samples = 0;
@@ -104,7 +104,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;
-       ctx = o->internal;
+       ctx = o->priv;
 
        switch (packet->type) {
        case SR_DF_META:
@@ -143,9 +143,9 @@ static int cleanup(struct sr_output *o)
        if (!o || !o->sdi)
                return SR_ERR_ARG;
 
-       ctx = o->internal;
+       ctx = o->priv;
        g_free(ctx);
-       o->internal = NULL;
+       o->priv = NULL;
 
        return SR_OK;
 }