From a0a89623f6ab41d78dcb8a9602387aca6657225a Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 26 Jul 2008 10:46:49 +0000 Subject: Add a new API for registering exceptions for a GError domain. Register a 2008-07-26 Johan Dahlin * examples/gio/directory-async.py: * gio/Makefile.am: * gio/giomodule.c (init_gio): * glib/pyglib.c (pyglib_error_check), (pyglib_register_exception_for_domain): * glib/pyglib.h: * tests/test_gio.py: Add a new API for registering exceptions for a GError domain. Register a new exception for G_IO_ERROR, update tests and examples to use the new exception. svn path=/trunk/; revision=863 --- glib/pyglib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'glib/pyglib.h') diff --git a/glib/pyglib.h b/glib/pyglib.h index dcc8f8a..384b60d 100644 --- a/glib/pyglib.h +++ b/glib/pyglib.h @@ -37,6 +37,8 @@ void pyglib_gil_state_release(PyGILState_STATE state); gboolean pyglib_enable_threads(void); gboolean pyglib_error_check(GError **error); gboolean pyglib_gerror_exception_check(GError **error); +PyObject *pyglib_register_exception_for_domain(gchar *name, + gint error_domain); gboolean pyglib_threads_enabled(void); PyObject * pyglib_main_context_new(GMainContext *context); void pyglib_set_thread_block_funcs(PyGLibThreadBlockFunc block_threads_func, -- cgit