+
+%extend sr_output_format {
+ int call_init(struct sr_output *o) {
+ return $self->init(o);
+ }
+
+ int call_event(struct sr_output *o, int event_type, uint8_t **data_out,
+ uint64_t *length_out) {
+ return $self->event(o, event_type, data_out, length_out);
+ }
+
+ int call_data(struct sr_output *o, const void *data_in,
+ uint64_t length_in, uint8_t **data_out, uint64_t *length_out) {
+ return $self->data(o, data_in, length_in, data_out, length_out);
+ }
+
+ int call_receive(struct sr_output *o, const struct sr_dev_inst *sdi,
+ const struct sr_datafeed_packet *packet, GString **out) {
+ return $self->receive(o, sdi, packet, out);
+ }
+
+ int call_cleanup(struct sr_output *o) {
+ return $self->cleanup(o);
+ }
+}