diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-04-28 21:44:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-04-28 21:44:18 (GMT) |
commit | 2e867fcae6e91594ae47528ca097952398ffcca4 (patch) | |
tree | c3897d1f27ab3f4f5813a570e7fb0f6988466e7f /plugins/pychrysalide/helpers.h | |
parent | 4d370b81498fc93e0199232110e9edeb526fd53b (diff) |
Extended the Python bindings for registers.
Diffstat (limited to 'plugins/pychrysalide/helpers.h')
-rw-r--r-- | plugins/pychrysalide/helpers.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pychrysalide/helpers.h b/plugins/pychrysalide/helpers.h index fe13f84..8ed9d9a 100644 --- a/plugins/pychrysalide/helpers.h +++ b/plugins/pychrysalide/helpers.h @@ -90,6 +90,13 @@ bool register_python_module_object(PyObject *, PyTypeObject *); #name "(" args ")\n--\n\n" doc \ } +#define PYTHON_WRAPPER_DEF(name, args, flags, doc) \ + { \ + #name, (PyCFunction)not_yet_implemented_method, \ + flags, \ + #name "(" args ")\n--\n\n" doc \ + } + #define PYTHON_GETSET_DEF(name, get, set, doc, closure) \ { \ name, get, set, \ @@ -163,6 +170,9 @@ bool register_class_for_dynamic_pygobject(GType, PyTypeObject *, PyTypeObject *) /* Fait suivre à la partie GObject une initialisation nouvelle. */ int forward_pygobjet_init(PyObject *); +/* Tente de convertir en instance GObject. */ +int convert_to_gobject(PyObject *, void *); + /* ----------------------- TRANSFERT DES VALEURS CONSTANTES ------------------------- */ |