X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb.h;h=751bf7087a52a80aa8b4ae197f13a3609ebb8ba4;hb=6bc0b37303f26faf6fbdcbbee444c227e83a329c;hp=4b5b34953b14b0f58ffeef8e4399b18e38312ca5;hpb=34168ab549fdf7c6c8a6fbe39824116698d01b12;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb.h b/src/xcb.h index 4b5b349..751bf70 100644 --- a/src/xcb.h +++ b/src/xcb.h @@ -408,6 +408,19 @@ xcb_connection_t *xcb_connect(const char *displayname, int *screenp); xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *display, xcb_auth_info_t *auth, int *screen); +/* xcb_xid.c */ + +/** + * @brief Allocates an XID for a new object. + * @param c: The connection. + * @return A newly allocated XID. + * + * Allocates an XID for a new object. Typically used just prior to + * various object creation functions, such as xcb_create_window. + */ +uint32_t xcb_generate_id(xcb_connection_t *c); + + /** * @} */