aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-23 23:30:42 +1000
committerDavid Walter Seikel2012-01-23 23:30:42 +1000
commit825a3d837a33f226c879cd02ad15c3fba57e8b2c (patch)
tree75f57bd9c4253508d338dc79ba8e57a7abc42255 /libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
parentAdd ability to disable the test harness, or the Lua compile test. (diff)
downloadSledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.zip
SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.gz
SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.bz2
SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.xz
Update the EFL to what I'm actually using, coz I'm using some stuff not yet released.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c')
-rw-r--r--libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c b/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
index bbd9c2a..fc32926 100644
--- a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
+++ b/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_error.c
@@ -8,6 +8,7 @@ static void (*_io_error_func)(void *data) = NULL;
8static void *_io_error_data = NULL; 8static void *_io_error_data = NULL;
9static int _error_request_code = 0; 9static int _error_request_code = 0;
10static int _error_code = 0; 10static int _error_code = 0;
11static Ecore_X_ID _error_resource_id = 0;
11 12
12/** 13/**
13 * Set the error handler. 14 * Set the error handler.
@@ -63,6 +64,18 @@ ecore_x_error_code_get(void)
63 return _error_code; 64 return _error_code;
64} 65}
65 66
67/**
68 * Get the resource id that caused the error.
69 * @return The resource id causing the X error
70 *
71 * Return the X resource id that caused the last X error
72 */
73EAPI Ecore_X_ID
74ecore_x_error_resource_id_get(void)
75{
76 return _error_resource_id;
77}
78
66int 79int
67_ecore_xcb_error_handle(xcb_generic_error_t *err) 80_ecore_xcb_error_handle(xcb_generic_error_t *err)
68{ 81{
@@ -84,6 +97,7 @@ _ecore_xcb_error_handle(xcb_generic_error_t *err)
84 97
85 _error_request_code = err->sequence; 98 _error_request_code = err->sequence;
86 _error_code = err->error_code; 99 _error_code = err->error_code;
100 _error_resource_id = err->resource_id;
87 if (_error_func) 101 if (_error_func)
88 _error_func(_error_data); 102 _error_func(_error_data);
89 103