diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-12 15:08:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-12 15:08:53 (GMT) |
commit | fcc78751e1e733b8662fde7d5e8ac6023cb34582 (patch) | |
tree | d57096d898446b6c2387bd2bd7ead0d3f175b617 /plugins/pychrysa/helpers.h | |
parent | a9328553fc558bca2e75f2c93b35acc5518d9568 (diff) |
Fixed many mistakes in the Python bindings.
Diffstat (limited to 'plugins/pychrysa/helpers.h')
-rw-r--r-- | plugins/pychrysa/helpers.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pychrysa/helpers.h b/plugins/pychrysa/helpers.h index 9fb83d0..3eee6a0 100644 --- a/plugins/pychrysa/helpers.h +++ b/plugins/pychrysa/helpers.h @@ -31,6 +31,9 @@ +/* ---------------------- ACCELERATEURS POUR PYTHON UNIQUEMENT ---------------------- */ + + /* Traduit pour Python le bilan d'une comparaison riche. */ PyObject *status_to_rich_cmp_state(int, int); @@ -54,6 +57,10 @@ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); #define PyDict_AddStringMacro(tp, c) PyDict_AddStringConstant(tp, #c, c) + +/* --------------------------- CONFORTS CIBLANT PYGOBJECT --------------------------- */ + + /** * Quelque chose est mal fait au niveau de l'abstraction GObject. * Du coup, Py_TPFLAGS_IS_ABSTRACT n'est pas pris en compte. @@ -64,6 +71,9 @@ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); #define APPLY_ABSTRACT_FLAG(tp) tp->tp_new = PyBaseObject_Type.tp_new +/* Définit dans le tas de Python un nouveau type. */ +PyTypeObject *define_python_dynamic_type(const PyTypeObject *); + /* Enregistre correctement une surcouche de conversion GObject. */ bool _register_class_for_pygobject(PyObject *, GType, PyTypeObject *, PyTypeObject *, ...); |