Mark xcb_generate_id deprecated in compton

x_new_id is preferred since it checks for error.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-05-21 23:23:30 +01:00
parent 89c4527264
commit b5da914920
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,12 @@
# define attr_ret_nonnull
#endif
#if __has_attribute(deprecated)
# define attr_deprecated __attribute__((deprecated))
#else
# define attr_deprecated
#endif
#if __has_attribute(malloc)
# define attr_malloc __attribute__((malloc))
#else

View File

@ -244,3 +244,5 @@ struct xvisual_info x_get_visual_info(xcb_connection_t *c, xcb_visualid_t visual
xcb_visualid_t x_get_visual_for_standard(xcb_connection_t *c, xcb_pict_standard_t std);
xcb_screen_t *x_screen_of_display(xcb_connection_t *c, int screen);
uint32_t attr_deprecated xcb_generate_id(xcb_connection_t *c);