summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject-private.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-07-13 17:26:56 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-07-13 17:26:56 +0000
commite26921db6615d6ab766ecb10049af254e43eeaa3 (patch)
tree65cf78bda92ddf9f68f243bea929853f24bf873f /gobject/pygobject-private.h
parentf80b6b9f96a027d926c9ee3d31f0ca8eb05272bf (diff)
downloadpygobject-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.h7
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