-static int init(struct output *o)
-{
- /* Prevent compiler warnings. */
- o = o;
-
- /* Nothing so far, but we might want to add stuff here later. */
- return 0;
-}
-
-static int event(struct output *o, int event_type, char **data_out,
- uint64_t *length_out)
+static int data(struct sr_output *o, const char *data_in, uint64_t length_in,
+ char **data_out, uint64_t *length_out)