]> sigrok.org Git - libsigrok.git/blobdiff - output/output_skeleton.c
Sigma: Support for decoding partial chunks.
[libsigrok.git] / output / output_skeleton.c
index 24cada4a1f77c1dbe7d285b8cd03c95d237b9686..91ee9171e73c1a522b2c9995d6f57e36ba2c2254 100644 (file)
  */
 
 #include <stdint.h>
-
-#include "sigrok.h"
-
-
+#include <sigrok.h>
 
 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",
+       DF_LOGIC,
        init,
        data,
-       event
+       event,
 };
-
-