X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_skeleton.c;h=a58b87aa919b80cb3ba1b6b457ffb12979b58464;hb=218557b85a308adc6ac533eb3f33d3dee17c13f8;hp=24cada4a1f77c1dbe7d285b8cd03c95d237b9686;hpb=5a8fda158bd9cc040b36fb3b016808c59ccf89f3;p=libsigrok.git diff --git a/output/output_skeleton.c b/output/output_skeleton.c index 24cada4a..a58b87aa 100644 --- a/output/output_skeleton.c +++ b/output/output_skeleton.c @@ -18,39 +18,30 @@ */ #include +#include -#include "sigrok.h" - - - -static int init(struct output *o) +static int init(struct sr_output *o) { return 0; } - -static int data(struct output *o, char *data_in, uint64_t length_in, char **data_out, uint64_t *length_out) +static int data(struct sr_output *o, char *data_in, uint64_t length_in, + char **data_out, uint64_t *length_out) { - - return SIGROK_OK; + return SR_OK; } - -static int event(struct output *o, int event_type, char **data_out, uint64_t *length_out) +static int event(struct sr_output *o, int event_type, char **data_out, + uint64_t *length_out) { - - return SIGROK_OK; + return SR_OK; } - - - -struct output_format output_foo = { +struct sr_output_format output_foo = { "foo", "The foo format", + SR_DF_LOGIC, init, data, - event + event, }; - -