From 6e47e1134ef64b9f11169bef22ac8561030dbca2 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 14 Apr 2007 17:13:44 +0000 Subject: Bug 425242 – Add API to convert a gobject.GError exception being raised to a GError** parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=645 --- gobject/pygobject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gobject/pygobject.h') diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 045f53a..43e7906 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -185,6 +185,7 @@ struct _PyGObject_Functions { void (*type_register_custom)(const gchar *type_name, PyGTypeRegistrationFunction callback, gpointer data); + gboolean (*gerror_exception_check) (GError **error); }; @@ -248,6 +249,8 @@ struct _PyGObject_Functions *_PyGObject_API; #define pyg_add_warning_redirection (_PyGObject_API->add_warning_redirection) #define pyg_disable_warning_redirections (_PyGObject_API->disable_warning_redirections) #define pyg_type_register_custom_callback (_PyGObject_API->type_register_custom) +#define pyg_gerror_exception_check (_PyGObject_API->gerror_exception_check) + #define pyg_block_threads() G_STMT_START { \ if (_PyGObject_API->block_threads != NULL) \ -- cgit