X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Ftext%2Ftext.h;h=4ec26985a21ea280cfee7154fbde6f5946eb0842;hb=c73d2ea421c2b425c3f0ae33bce2bfd0c448ca5f;hp=b8b6d3b8b1b7914a8444f1822ada2992f32eeb6c;hpb=f50f3f40d9238b0c50be67e52bc132aadfcf2050;p=libsigrok.git diff --git a/output/text/text.h b/output/text/text.h index b8b6d3b8..4ec26985 100644 --- a/output/text/text.h +++ b/output/text/text.h @@ -1,7 +1,7 @@ /* * This file is part of the sigrok project. * - * Copyright (C) 2011 Bert Vermeulen + * Copyright (C) 2010-2012 Bert Vermeulen * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,9 +17,8 @@ * along with this program. If not, see . */ - -#ifndef TEXT_H_ -#define TEXT_H_ +#ifndef LIBSIGROK_OUTPUT_TEXT_TEXT_H +#define LIBSIGROK_OUTPUT_TEXT_TEXT_H #define DEFAULT_BPL_BITS 64 #define DEFAULT_BPL_HEX 192 @@ -47,23 +46,23 @@ struct context { 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); - - -int init_bits(struct sr_output *o); -int data_bits(struct sr_output *o, char *data_in, uint64_t length_in, - 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); -int init_hex(struct sr_output *o); -int data_hex(struct sr_output *o, char *data_in, uint64_t length_in, - 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_ascii(struct sr_output *o); -int data_ascii(struct sr_output *o, 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); +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 /* TEXT_H_ */ +#endif