]> sigrok.org Git - libsigrok.git/blobdiff - output/output_vcd.c
SR_ prefix for all public enums.
[libsigrok.git] / output / output_vcd.c
index 6833eec26123da43f44c7d86044bb68d5208566b..c6d1655d1409e10a0be38503458b248473b0bea2 100644 (file)
@@ -93,8 +93,8 @@ static int init(struct sr_output *o)
 
        if (o->device->plugin) {
                ctx->samplerate = *((uint64_t *) o->device->plugin->get_device_info(
-                               o->device->plugin_index, DI_CUR_SAMPLERATE));
-               if (!((samplerate_s = sigrok_samplerate_string(ctx->samplerate)))) {
+                               o->device->plugin_index, SR_DI_CUR_SAMPLERATE));
+               if (!((samplerate_s = sr_samplerate_string(ctx->samplerate)))) {
                        g_string_free(ctx->header, TRUE);
                        free(ctx);
                        return SR_ERR;
@@ -112,7 +112,7 @@ static int init(struct sr_output *o)
                ctx->period = MHZ(1);
        else
                ctx->period = KHZ(1);
-       if (!(frequency_s = sigrok_period_string(ctx->period))) {
+       if (!(frequency_s = sr_period_string(ctx->period))) {
                g_string_free(ctx->header, TRUE);
                free(ctx);
                return SR_ERR;
@@ -149,7 +149,7 @@ static int event(struct sr_output *o, int event_type, char **data_out,
 
        ctx = o->internal;
        switch (event_type) {
-       case DF_END:
+       case SR_DF_END:
                outbuf = strdup("$dumpoff\n$end\n");
                *data_out = outbuf;
                *length_out = strlen(outbuf);
@@ -225,7 +225,7 @@ static int data(struct sr_output *o, char *data_in, uint64_t length_in,
 struct sr_output_format output_vcd = {
        "vcd",
        "Value Change Dump (VCD)",
-       DF_LOGIC,
+       SR_DF_LOGIC,
        init,
        data,
        event,