From: Bert Vermeulen Date: Mon, 14 Jul 2014 17:22:58 +0000 (+0200) Subject: swig: Use new output API. X-Git-Tag: libsigrok-0.4.0~1260 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5842817e45d40fea99b698e162ba3b086c9bf3e2;p=libsigrok.git swig: Use new output API. --- diff --git a/bindings/swig/libsigrok.i b/bindings/swig/libsigrok.i index 8b7a2dfd..3e33963f 100644 --- a/bindings/swig/libsigrok.i +++ b/bindings/swig/libsigrok.i @@ -120,19 +120,9 @@ gchar *g_string_free(GString *string, gboolean free_segment); 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, + int call_receive(struct sr_output *o, const struct sr_datafeed_packet *packet, GString **out) { - return $self->receive(o, sdi, packet, out); + return $self->receive(o, packet, out); } int call_cleanup(struct sr_output *o) {