summaryrefslogtreecommitdiff
path: root/cogl/cogl-xlib.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-04-13 16:41:41 +0100
committerNeil Roberts <neil@linux.intel.com>2011-04-20 18:17:06 +0100
commitf6ae9decaa9367faaf74b8da22859ed5288b840d (patch)
tree2407eed814151911f95763cfddcbd9db8d3b3a5c /cogl/cogl-xlib.h
parentcbbf76f280fc7a9b5815459f89ef78dfaed0b823 (diff)
downloadcogl-f6ae9decaa9367faaf74b8da22859ed5288b840d.tar.gz
cogl-renderer: Move the XEvent filters to be generic for all renderers
Instead of having cogl_renderer_xlib_add_filter and friends there is now cogl_renderer_add_native_filter which can be used regardless of the backend. The callback function for the filter now just takes a void pointer instead of an XEvent pointer which should be interpreted differently depending on the backend. For example, on Xlib it would still be an XEvent but on Windows it could be a MSG. This simplifies the code somewhat because the _cogl_xlib_add_filter no longer needs to have its own filter list when a stub renderer is used because there is always a renderer available. cogl_renderer_xlib_handle_event has also been renamed to cogl_renderer_handle_native_event. This just forwards the event on to all of the listeners. The backend renderer is expected to register its own event filter if it wants to process the events in some way.
Diffstat (limited to 'cogl/cogl-xlib.h')
-rw-r--r--cogl/cogl-xlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-xlib.h b/cogl/cogl-xlib.h
index c776ece2..d088dc9d 100644
--- a/cogl/cogl-xlib.h
+++ b/cogl/cogl-xlib.h
@@ -78,7 +78,7 @@ cogl_xlib_set_display (Display *display);
* Stability: Unstable
*/
#define cogl_xlib_handle_event cogl_xlib_handle_event_EXP
-CoglXlibFilterReturn
+CoglFilterReturn
cogl_xlib_handle_event (XEvent *xevent);
#endif /* __COGL_XLIB_H__ */