X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_skeleton.c;h=d96d41ab4e34f261da5785ed5bd2dadaba2470e4;hb=340f6e7aeaf0c6cbbb27c5b535787bd09407994b;hp=4a3f280ecfb772949016c9bd928c6aafa4e6fd8f;hpb=25e7d9b115e5ea08be2d92ffe286aa1bf95778f4;p=libsigrok.git diff --git a/output/output_skeleton.c b/output/output_skeleton.c index 4a3f280e..d96d41ab 100644 --- a/output/output_skeleton.c +++ b/output/output_skeleton.c @@ -18,36 +18,29 @@ */ #include -#include "sigrok.h" +#include 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, }; - -