X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_skeleton.c;h=d96d41ab4e34f261da5785ed5bd2dadaba2470e4;hb=340f6e7aeaf0c6cbbb27c5b535787bd09407994b;hp=6bd885f9e797cef14f9fde3b6828fe56ef2ea9ae;hpb=a1bb33afbde769156ad4bef7a60579da64aebbb7;p=libsigrok.git diff --git a/output/output_skeleton.c b/output/output_skeleton.c index 6bd885f9..d96d41ab 100644 --- a/output/output_skeleton.c +++ b/output/output_skeleton.c @@ -18,41 +18,29 @@ */ #include +#include -#include "sigrok.h" - - - -static void init(struct output *o) +static int init(struct 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 output *o, char *data_in, uint64_t length_in, + char **data_out, uint64_t *length_out) { - return SIGROK_OK; } - -static int event(struct output *o, int event_type, char **data_out, uint64_t *length_out) +static int event(struct output *o, int event_type, char **data_out, + uint64_t *length_out) { - return SIGROK_OK; } - - - struct output_format output_foo = { "foo", "The foo format", init, data, - event + event, }; - -