]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.c
sr: input/output: Mark more symbols with SR_PRIV.
[libsigrok.git] / output / text / text.c
index 98735eb41c7f5c4c6cfdb242a2ad9ba13b060ea0..29740656c839e3d1dccd362317c99d9a7f74ab87 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <glib.h>
-#include <sigrok.h>
 #include "config.h"
+#include "sigrok.h"
 #include "text.h"
 
-
-void flush_linebufs(struct context *ctx, char *outbuf)
+SR_PRIV void flush_linebufs(struct context *ctx, char *outbuf)
 {
        static int max_probename_len = 0;
        int len, i;
@@ -64,7 +63,7 @@ void flush_linebufs(struct context *ctx, char *outbuf)
        memset(ctx->linebuf, 0, i * ctx->linebuf_len);
 }
 
-int init(struct sr_output *o, int default_spl, enum outputmode mode)
+SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode)
 {
        struct context *ctx;
        struct sr_probe *probe;
@@ -137,8 +136,8 @@ int init(struct sr_output *o, int default_spl, enum outputmode mode)
        return SR_OK;
 }
 
-int event(struct sr_output *o, int event_type, char **data_out,
-                uint64_t *length_out)
+SR_PRIV int event(struct sr_output *o, int event_type, char **data_out,
+                 uint64_t *length_out)
 {
        struct context *ctx;
        int outsize;
@@ -170,4 +169,3 @@ int event(struct sr_output *o, int event_type, char **data_out,
 
        return SR_OK;
 }
-