return SR_OK;
}
-struct sr_input_format input_binary = {
+SR_PRIV struct sr_input_format input_binary = {
.id = "binary",
.description = "Raw binary",
.format_match = format_match,
return SR_OK;
}
-struct sr_input_format input_chronovu_la8 = {
+SR_PRIV struct sr_input_format input_chronovu_la8 = {
.id = "chronovu-la8",
.description = "ChronoVu LA8",
.format_match = format_match,
#include "sigrok.h"
#include "sigrok-internal.h"
-extern struct sr_input_format input_chronovu_la8;
-extern struct sr_input_format input_binary;
+extern SR_PRIV struct sr_input_format input_chronovu_la8;
+extern SR_PRIV struct sr_input_format input_binary;
static struct sr_input_format *input_module_list[] = {
&input_chronovu_la8,
}
#endif
-struct sr_output_format output_analog_bits = {
+SR_PRIV struct sr_output_format output_analog_bits = {
.id = "analog_bits",
.description = "Bits (takes argument, default 64)",
.df_type = SR_DF_ANALOG,
.data = data_bits,
.event = event,
};
+
#if 0
struct sr_output_format output_analog_hex = {
.id = "analog_hex",
return SR_OK;
}
-struct sr_output_format output_binary = {
+SR_PRIV struct sr_output_format output_binary = {
.id = "binary",
.description = "Raw binary",
.df_type = SR_DF_LOGIC,
return SR_OK;
}
-struct sr_output_format output_chronovu_la8 = {
+SR_PRIV struct sr_output_format output_chronovu_la8 = {
.id = "chronovu-la8",
.description = "ChronoVu LA8",
.df_type = SR_DF_LOGIC,
return SR_OK;
}
-struct sr_output_format output_csv = {
+SR_PRIV struct sr_output_format output_csv = {
.id = "csv",
.description = "Comma-separated values (CSV)",
.df_type = SR_DF_LOGIC,
return SR_OK;
}
-struct sr_output_format output_gnuplot = {
+SR_PRIV struct sr_output_format output_gnuplot = {
.id = "gnuplot",
.description = "Gnuplot",
.df_type = SR_DF_LOGIC,
return SR_OK;
}
-struct sr_output_format output_ols = {
+SR_PRIV struct sr_output_format output_ols = {
.id = "ols",
.description = "OpenBench Logic Sniffer",
.df_type = SR_DF_LOGIC,
#include "sigrok.h"
#include "sigrok-internal.h"
-extern struct sr_output_format output_text_bits;
-extern struct sr_output_format output_text_hex;
-extern struct sr_output_format output_text_ascii;
-extern struct sr_output_format output_binary;
-extern struct sr_output_format output_vcd;
-extern struct sr_output_format output_ols;
-extern struct sr_output_format output_gnuplot;
-extern struct sr_output_format output_chronovu_la8;
-extern struct sr_output_format output_csv;
-/* extern struct sr_output_format output_analog_bits; */
-/* extern struct sr_output_format output_analog_gnuplot; */
+extern SR_PRIV struct sr_output_format output_text_bits;
+extern SR_PRIV struct sr_output_format output_text_hex;
+extern SR_PRIV struct sr_output_format output_text_ascii;
+extern SR_PRIV struct sr_output_format output_binary;
+extern SR_PRIV struct sr_output_format output_vcd;
+extern SR_PRIV struct sr_output_format output_ols;
+extern SR_PRIV struct sr_output_format output_gnuplot;
+extern SR_PRIV struct sr_output_format output_chronovu_la8;
+extern SR_PRIV struct sr_output_format output_csv;
+/* extern SR_PRIV struct sr_output_format output_analog_bits; */
+/* extern SR_PRIV struct sr_output_format output_analog_gnuplot; */
static struct sr_output_format *output_module_list[] = {
&output_text_bits,
#include "sigrok-internal.h"
#include "text.h"
-int init_ascii(struct sr_output *o)
+SR_PRIV int init_ascii(struct sr_output *o)
{
return init(o, DEFAULT_BPL_ASCII, MODE_ASCII);
}
-int data_ascii(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out)
+SR_PRIV int data_ascii(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out,
+ uint64_t *length_out)
{
struct context *ctx;
unsigned int outsize, offset, p;
return SR_OK;
}
-struct sr_output_format output_text_ascii = {
+SR_PRIV struct sr_output_format output_text_ascii = {
.id = "ascii",
.description = "ASCII (takes argument, default 74)",
.df_type = SR_DF_LOGIC,
#include "sigrok-internal.h"
#include "text.h"
-int init_bits(struct sr_output *o)
+SR_PRIV int init_bits(struct sr_output *o)
{
return init(o, DEFAULT_BPL_BITS, MODE_BITS);
}
-int data_bits(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out)
+SR_PRIV int data_bits(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out, uint64_t *length_out)
{
struct context *ctx;
unsigned int outsize, offset, p;
return SR_OK;
}
-struct sr_output_format output_text_bits = {
+SR_PRIV struct sr_output_format output_text_bits = {
.id = "bits",
.description = "Bits (takes argument, default 64)",
.df_type = SR_DF_LOGIC,
#include "sigrok.h"
#include "text.h"
-int init_hex(struct sr_output *o)
+SR_PRIV int init_hex(struct sr_output *o)
{
return init(o, DEFAULT_BPL_HEX, MODE_HEX);
}
-int data_hex(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out)
+SR_PRIV int data_hex(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out, uint64_t *length_out)
{
struct context *ctx;
unsigned int outsize, offset, p;
return SR_OK;
}
-struct sr_output_format output_text_hex = {
+SR_PRIV struct sr_output_format output_text_hex = {
.id = "hex",
.description = "Hexadecimal (takes argument, default 192)",
.df_type = SR_DF_LOGIC,
#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;
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;
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;
enum outputmode mode;
};
-void flush_linebufs(struct context *ctx, char *outbuf);
-int init(struct sr_output *o, int default_spl, enum outputmode mode);
-int event(struct sr_output *o, int event_type, char **data_out,
- uint64_t *length_out);
+SR_PRIV void flush_linebufs(struct context *ctx, char *outbuf);
+SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode);
+SR_PRIV int event(struct sr_output *o, int event_type, char **data_out,
+ uint64_t *length_out);
+SR_PRIV int init_bits(struct sr_output *o);
+SR_PRIV int data_bits(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out,
+ uint64_t *length_out);
-int init_bits(struct sr_output *o);
-int data_bits(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out);
+SR_PRIV int init_hex(struct sr_output *o);
+SR_PRIV int data_hex(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out, uint64_t *length_out);
-int init_hex(struct sr_output *o);
-int data_hex(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out);
-
-int init_ascii(struct sr_output *o);
-int data_ascii(struct sr_output *o, const char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out);
+SR_PRIV int init_ascii(struct sr_output *o);
+SR_PRIV int data_ascii(struct sr_output *o, const char *data_in,
+ uint64_t length_in, char **data_out,
+ uint64_t *length_out);
#endif