From e26921db6615d6ab766ecb10049af254e43eeaa3 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 13 Jul 2006 17:26:56 +0000 Subject: 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 # --- gobject/pygobject-private.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gobject/pygobject-private.h') 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 -- cgit