diff options
author | James Henstridge <james@daa.com.au> | 2002-01-22 02:12:21 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2002-01-22 02:12:21 +0000 |
commit | bb559dacf3a95fe9610e4950860cb962ba9940f2 (patch) | |
tree | 520a02b171dd8ea5125b408e75148384d461276b /pygobject-private.h | |
parent | c72407261a990aa7cafcf474e4c05d2ceba9ed04 (diff) | |
download | pygtk-bb559dacf3a95fe9610e4950860cb962ba9940f2.tar.gz |
don't create boxed_marshal hash table, and remove the type functions moved
2002-01-22 James Henstridge <james@daa.com.au>
* gobjectmodule.c (initgobject): don't create boxed_marshal hash
table, and remove the type functions moved to pygtype.c.
* pygtype.c: move GType stuff here from gobjectmodule.c.
(pyg_register_boxed_custom): store the custom boxed marshal
functions as GType data, rather than in a separate hash table.
Diffstat (limited to 'pygobject-private.h')
-rw-r--r-- | pygobject-private.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pygobject-private.h b/pygobject-private.h index 819950d1..8c1c6376 100644 --- a/pygobject-private.h +++ b/pygobject-private.h @@ -10,9 +10,29 @@ /* from gobjectmodule.c */ +GType PY_TYPE_OBJECT; + +PyObject * pygobject_new (GObject *obj); +PyTypeObject *pygobject_lookup_class (GType gtype); + + +/* from pygtype.h */ +extern PyTypeObject PyGTypeWrapper_Type; + PyObject *pyg_type_wrapper_new (GType type); GType pyg_type_from_object (PyObject *obj); +gint pyg_enum_get_value (GType enum_type, PyObject *obj, gint *val); +gint pyg_flags_get_value (GType flag_type, PyObject *obj, gint *val); + +typedef PyObject *(* fromvaluefunc)(const GValue *value); +typedef int (*tovaluefunc)(GValue *value, PyObject *obj); + +void pyg_register_boxed_custom(GType boxed_type, + fromvaluefunc from_func, + tovaluefunc to_func); +int pyg_value_from_pyobject(GValue *value, PyObject *obj); +PyObject *pyg_value_as_pyobject(const GValue *value); /* from pygboxed.c */ extern PyTypeObject PyGBoxed_Type; |