From: Martin Ling Date: Tue, 16 Apr 2013 02:02:52 +0000 (+0100) Subject: swig: add function to cast from void * to struct sr_datafeed_logic * X-Git-Tag: dsupstream~134 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=966fcbe3e34de14b163987550d17b00dc84bf82e;p=libsigrok.git swig: add function to cast from void * to struct sr_datafeed_logic * --- diff --git a/bindings/swig/libsigrok.i b/bindings/swig/libsigrok.i index 837790cc..f520cad2 100644 --- a/bindings/swig/libsigrok.i +++ b/bindings/swig/libsigrok.i @@ -48,3 +48,4 @@ void g_slist_free(GSList *list); %pointer_functions(struct sr_context *, sr_context_ptr_ptr); %array_functions(struct sr_dev_driver *, sr_dev_driver_ptr_array); %pointer_cast(gpointer, struct sr_dev_inst *, gpointer_to_sr_dev_inst_ptr); +%pointer_cast(void *, struct sr_datafeed_logic *, void_ptr_to_sr_datafeed_logic_ptr)