]> sigrok.org Git - libsigrok.git/blobdiff - bindings/python/sigrok/core/classes.i
python: Apply typemap for VariantBase to VariantContainerBase.
[libsigrok.git] / 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);