summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-private.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-04-23 22:10:32 +0200
committerBenjamin Otte <otte@redhat.com>2010-04-23 22:18:54 +0200
commit637564c562de21c17c36d192d3ab1b3fe069754b (patch)
tree3d9c0e9846cfbd9fe29014c06ea33c683d265d3e /src/cairo-xlib-private.h
parent49b52a8946cbd5f785f71069313e4a204358887b (diff)
downloadcairo-637564c562de21c17c36d192d3ab1b3fe069754b.tar.gz
xlib: Fix screen device handling
Add a _cairo_xlib_device_create() function that could easily be exported as a replacement for _cairo_xlib_display_get(). This function returns a cairo_device_t instead of a cairo_xlib_display_t because the display isn't acquired.
Diffstat (limited to 'src/cairo-xlib-private.h')
-rw-r--r--src/cairo-xlib-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h
index 550520da1..d8acf9a9b 100644
--- a/src/cairo-xlib-private.h
+++ b/src/cairo-xlib-private.h
@@ -112,8 +112,8 @@ struct _cairo_xlib_screen {
cairo_array_t visuals;
};
-cairo_private cairo_status_t
-_cairo_xlib_display_get (Display *display, cairo_xlib_display_t **out);
+cairo_private cairo_device_t *
+_cairo_xlib_device_create (Display *display);
cairo_private void
_cairo_xlib_display_add_screen (cairo_xlib_display_t *display,