diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-07-13 17:26:56 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-07-13 17:26:56 +0000 |
commit | e26921db6615d6ab766ecb10049af254e43eeaa3 (patch) | |
tree | 65cf78bda92ddf9f68f243bea929853f24bf873f /gobject/pygobject-private.h | |
parent | f80b6b9f96a027d926c9ee3d31f0ca8eb05272bf (diff) | |
download | pygobject-e26921db6615d6ab766ecb10049af254e43eeaa3.tar.gz pygobject-e26921db6615d6ab766ecb10049af254e43eeaa3.tar.xz pygobject-e26921db6615d6ab766ecb10049af254e43eeaa3.zip |
Add infrastructure for lazy type registration, fixes #
* gobject/gobjectmodule.c: (pyg_type_from_name),
(get_type_name_for_class):
* gobject/pygobject-private.h:
* gobject/pygobject.c: (pygobject_new_with_interfaces),
(pygobject_lookup_class), (pygobject_emit):
* gobject/pygobject.h:
* gobject/pygtype.c: (_wrap_g_type_from_name),
(pyg_type_from_object), (pyg_type_register_custom_callback),
(pyg_type_get_custom), (_pyg_type_from_name):
Add infrastructure for lazy type registration, fixes #
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r-- | gobject/pygobject-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index 2b6ac73..9553600 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -253,4 +253,11 @@ PyObject * pyg_option_context_new (GOptionContext * context); PyObject * pyg_option_group_new (GOptionGroup * group); GOptionGroup *pyg_option_group_transfer_group(PyGOptionGroup *self); +extern GHashTable *custom_type_registration; +void pyg_type_register_custom_callback(const gchar *typename, + PyGTypeRegistrationFunction callback, + gpointer data); +PyTypeObject * pyg_type_get_custom(const gchar *name); +GType _pyg_type_from_name(const gchar *name); + #endif |