xlib-xcb: Use slim_hidden_proto correctly

There are debug functions for setting the precision on a xlib device, so
xlib-xcb must redirect that to the xcb backend, too. However this means that
these public functions now are also called internally, thus we have to make them
go through the slim_hidden_* macros.

This commit fixes the following error from "make check":

Checking .libs/libcairo.so for local PLT entries
00000000002bb6d8  000001e300000007 R_X86_64_JUMP_SLOT     000000000006d8a0 cairo_xcb_device_debug_set_precision + 0
00000000002bb750  0000025e00000007 R_X86_64_JUMP_SLOT     000000000006d8b0 cairo_xcb_device_debug_get_precision + 0
FAIL: check-plt.sh

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-07-01 10:12:15 +02:00
parent ea645913ba
commit 4495e08e9e
2 changed files with 8 additions and 0 deletions

View file

@ -910,6 +910,9 @@ cairo_xcb_device_debug_set_precision (cairo_device_t *device,
((cairo_xcb_connection_t *) device)->force_precision = precision;
}
#if CAIRO_HAS_XLIB_XCB_FUNCTIONS
slim_hidden_def (cairo_xcb_device_debug_set_precision);
#endif
int
cairo_xcb_device_debug_get_precision (cairo_device_t *device)
@ -919,3 +922,6 @@ cairo_xcb_device_debug_get_precision (cairo_device_t *device)
return ((cairo_xcb_connection_t *) device)->force_precision;
}
#if CAIRO_HAS_XLIB_XCB_FUNCTIONS
slim_hidden_def (cairo_xcb_device_debug_get_precision);
#endif

View file

@ -760,6 +760,8 @@ slim_hidden_proto (cairo_xcb_surface_create);
slim_hidden_proto (cairo_xcb_surface_create_for_bitmap);
slim_hidden_proto (cairo_xcb_surface_create_with_xrender_format);
slim_hidden_proto (cairo_xcb_surface_set_size);
slim_hidden_proto (cairo_xcb_device_debug_get_precision);
slim_hidden_proto_no_warn (cairo_xcb_device_debug_set_precision);
#endif
#endif /* CAIRO_XCB_PRIVATE_H */