X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=output%2Foutput_skeleton.c;h=44074ce1d78d658465c46548cda3f33849f95970;hb=6f42226475bea46cebd348c1c7556cf9a6fce118;hp=91ee9171e73c1a522b2c9995d6f57e36ba2c2254;hpb=f0411b1d170aa60c3aa79b12e88f53b225ea350d;p=libsigrok.git diff --git a/output/output_skeleton.c b/output/output_skeleton.c index 91ee9171..44074ce1 100644 --- a/output/output_skeleton.c +++ b/output/output_skeleton.c @@ -20,28 +20,28 @@ #include #include -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, +static int data(struct sr_output *o, const 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, +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 = { - "foo", - "The foo format", - DF_LOGIC, - init, - data, - event, +struct sr_output_format output_foo = { + .id = "foo", + .description = "The foo format", + .df_type = SR_DF_LOGIC, + .init = init, + .data = data, + .event = event, };