-static void init(struct output *o)
+static int init(struct output *o)
{
-
-
-
+ return 0;
}
}
-static void init(struct output *o, int default_spl)
+static int init(struct output *o, int default_spl)
{
struct context *ctx;
struct probe *probe;
ctx->linebuf = calloc(1, num_probes * ctx->linebuf_len);
ctx->linevalues = calloc(1, num_probes);
+ return 0;
}
}
-static void init_binary(struct output *o)
+static int init_binary(struct output *o)
{
- init(o, DEFAULT_BPL_BIN);
+ return init(o, DEFAULT_BPL_BIN);
}
}
-static void init_hex(struct output *o)
+static int init_hex(struct output *o)
{
- init(o, DEFAULT_BPL_BIN);
+ return init(o, DEFAULT_BPL_BIN);
}
char *probelist[65];
int *prevbits;
char *header;
- char *data;
};
const char *vcd_header = "\
$enddefinitions $end\n\
$dumpvars\n";
-static void init(struct output *o)
+static int init(struct output *o)
{
/* Maximum header length */
#define MAX_HEADER_LEN 2048
(char *)&sbuf, 1, "ns", PACKAGE, (char *)&wbuf);
ctx->prevbits = calloc(sizeof(int), num_probes);
+
+ return 0;
}
static int event(struct output *o, int event_type, char **data_out,
struct output_format {
char *extension;
char *description;
- void (*init) (struct output *o);
+ int (*init) (struct output *o);
int (*data) (struct output *o, char *data_in, uint64_t length_in,
char **data_out, uint64_t *length_out);
int (*event) (struct output *o, int event_type, char **data_out,