]> sigrok.org Git - libsigrok.git/blobdiff - output/output_skeleton.c
Add sr_ prefix to input/output structs.
[libsigrok.git] / output / output_skeleton.c
index 4a3f280ecfb772949016c9bd928c6aafa4e6fd8f..67e4d902ce9fd1a7e99952b0ed4ac530907475c7 100644 (file)
  */
 
 #include <stdint.h>
-#include "sigrok.h"
+#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",
+       DF_LOGIC,
        init,
        data,
-       event
+       event,
 };
-
-