]> sigrok.org Git - libsigrok.git/blobdiff - output/text/ascii.c
Add sr_ prefix to input/output structs.
[libsigrok.git] / output / text / ascii.c
index b9f08254a54b4fd4dfaba69f5c7146fd233c8404..e4e3e0cd5542598b4afc62e46516131a9ff42b19 100644 (file)
 #include "text.h"
 
 
-int init_ascii(struct output *o)
+int init_ascii(struct sr_output *o)
 {
        return init(o, DEFAULT_BPL_ASCII, MODE_ASCII);
 }
 
-int data_ascii(struct output *o, char *data_in, uint64_t length_in,
+int data_ascii(struct sr_output *o, char *data_in, uint64_t length_in,
                     char **data_out, uint64_t *length_out)
 {
        struct context *ctx;
@@ -50,7 +50,7 @@ int data_ascii(struct output *o, char *data_in, uint64_t length_in,
             * (ctx->num_enabled_probes * max_linelen);
 
        if (!(outbuf = calloc(1, outsize + 1)))
-               return SIGROK_ERR_MALLOC;
+               return SR_ERR_MALLOC;
 
        outbuf[0] = '\0';
        if (ctx->header) {
@@ -111,11 +111,11 @@ int data_ascii(struct output *o, char *data_in, uint64_t length_in,
        *data_out = outbuf;
        *length_out = strlen(outbuf);
 
-       return SIGROK_OK;
+       return SR_OK;
 }
 
 
-struct output_format output_text_ascii = {
+struct sr_output_format output_text_ascii = {
        "ascii",
        "ASCII (takes argument, default 74)",
        DF_LOGIC,