#include "text.h"
-int init_bits(struct output *o)
+int init_bits(struct sr_output *o)
{
return init(o, DEFAULT_BPL_BITS, MODE_BITS);
}
-int data_bits(struct output *o, char *data_in, uint64_t length_in,
+int data_bits(struct sr_output *o, char *data_in, uint64_t length_in,
char **data_out, uint64_t *length_out)
{
struct context *ctx;
* (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) {
*data_out = outbuf;
*length_out = strlen(outbuf);
- return SIGROK_OK;
+ return SR_OK;
}
-struct output_format output_text_bits = {
+struct sr_output_format output_text_bits = {
"bits",
"Bits (takes argument, default 64)",
DF_LOGIC,