]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.h
LA8: Use the new SR_ERR_ARG macro.
[libsigrok.git] / output / text / text.h
index 89ed9892cb7b11d19b78aa533591fafbb8ddee67..c166d853117d566a685800105f787677cb27ba9c 100644 (file)
@@ -17,7 +17,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
 #ifndef TEXT_H_
 #define TEXT_H_
 
@@ -48,22 +47,21 @@ struct context {
 };
 
 void flush_linebufs(struct context *ctx, char *outbuf);
-int init(struct output *o, int default_spl, enum outputmode mode);
-int event(struct output *o, int event_type, char **data_out,
+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 output *o);
-int data_bits(struct output *o, char *data_in, uint64_t length_in,
+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);
 
-int init_hex(struct output *o);
-int data_hex(struct output *o, char *data_in, uint64_t length_in,
+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 output *o);
-int data_ascii(struct output *o, char *data_in, uint64_t length_in,
+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);
 
-
-#endif /* TEXT_H_ */
+#endif