]> sigrok.org Git - libsigrok.git/commitdiff
python: Apply typemap for VariantBase to VariantContainerBase.
authorMartin Ling <redacted>
Sun, 5 Jan 2020 18:25:13 +0000 (18:25 +0000)
committerMartin Ling <redacted>
Sun, 5 Jan 2020 18:25:13 +0000 (18:25 +0000)
Fixes #1480.

bindings/python/sigrok/core/classes.i

index a00efff2536d78911cd7a8b41f2744ad418c8479..5c5cb3b31680303d2e45d2b073fbc16029a469b0 100644 (file)
@@ -112,6 +112,9 @@ typedef guint pyg_flags_type;
     g_free(value);
 }
 
+/* Use the same typemap above for Glib::VariantContainerBase */
+%apply Glib::VariantBase { Glib::VariantContainerBase }
+
 /* Map from callable PyObject to LogCallbackFunction */
 %typecheck(SWIG_TYPECHECK_POINTER) sigrok::LogCallbackFunction {
     $1 = PyCallable_Check($input);