X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fpython%2Fsigrok%2Fcore%2Fclasses.i;h=a01d18afd373f7b36e8ce607bbafcc1cab6e11e6;hb=3b161085731fc6e86f7decedee34f55096282581;hp=b755289052c842100116d25a4d66ad30f974d080;hpb=edbd09250b185950646ee5928b2e7112161168cc;p=libsigrok.git diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index b7552890..a01d18af 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -287,7 +287,7 @@ std::map dict_to_map_string(PyObject *dict) /* Convert from a Python type to Glib::Variant, according to config key data type. */ Glib::VariantBase python_to_variant_by_key(PyObject *input, const sigrok::ConfigKey *key) { - enum sr_datatype type = key->get_data_type()->get_id(); + enum sr_datatype type = key->data_type()->id(); if (type == SR_T_UINT64 && PyInt_Check(input)) return Glib::Variant::create(PyInt_AsLong(input)); @@ -309,7 +309,7 @@ Glib::VariantBase python_to_variant_by_key(PyObject *input, const sigrok::Config Glib::VariantBase python_to_variant_by_option(PyObject *input, std::shared_ptr option) { - GVariantType *type = option->get_default_value().get_type().gobj(); + GVariantType *type = option->default_value().get_type().gobj(); if (type == G_VARIANT_TYPE_UINT64 && PyInt_Check(input)) return Glib::Variant::create(PyInt_AsLong(input)); @@ -400,7 +400,7 @@ std::map dict_to_map_options(PyObject *dict, std::shared_ptr _create_input_kwargs(PyObject *dict) { return $self->create_input( - dict_to_map_options(dict, $self->get_options())); + dict_to_map_options(dict, $self->options())); } } @@ -419,7 +419,7 @@ std::map dict_to_map_options(PyObject *dict, std::shared_ptr device, PyObject *dict) { return $self->create_output(device, - dict_to_map_options(dict, $self->get_options())); + dict_to_map_options(dict, $self->options())); } }