From: TORRI Vincent
int xcb_aux_sync (xcb_connection_t *c); @@ -917,7 +917,7 @@ xcb_void_cookie_t xcb_create_gc (xcb_connection_t *c, #include <X11/XCB/xcb.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -1249,7 +1249,7 @@ xcb_void_cookie_t xcb_poly_fill_arc (xcb_connection_t *c, #include <X11/XCB/xcb.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -1912,11 +1912,11 @@ print_modifiers (uint32_t mask) } int -main (int argc, char *argv[]) +main () { - xcb_connection_t *c; - xcb_screen_t *screen; - xcb_drawable_t win; + xcb_connection_t *c; + xcb_screen_t *screen; + xcb_drawable_t win; xcb_generic_event_t *e; uint32_t mask = 0; uint32_t values[2]; @@ -2146,7 +2146,7 @@ xcb_void_cookie_t xcb_change_property (xcb_connection_t *c, /* Connection #include <X11/XCB/xcb_atom.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -2676,7 +2676,7 @@ typedef struct { #include <X11/XCB/xcb.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -2721,7 +2721,7 @@ xcb_void_cookie_t xcb_create_colormap (xcb_connection_t *c, /* Pointer to #include <X11/XCB/xcb.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -2822,7 +2822,7 @@ xcb_alloc_color_reply_t *xcb_alloc_color_reply (xcb_connection_t *c, #include <X11/XCB/xcb.h> int -main (int argc, char *argv[]) +main () { xcb_connection_t *c; xcb_screen_t *screen; @@ -2973,12 +2973,12 @@ xcb_void_cookie_t xcb_copy_area (xcb_connection_t *c, /* Pointer to xcb_drawable_t src_drawable, /* The Drawable we want to paste */ xcb_drawable_t dst_drawable, /* The Drawable on which we copy the previous Drawable */ xcb_gcontext_t gc, /* A Graphic Context */ - int16_t src_x, /* Top left x coordinate of the region we want to copy */ - int16_t src_y, /* Top left y coordinate of the region we want to copy */ - int16_t dst_x, /* Top left x coordinate of the region where we want to copy */ - int16_t dst_y, /* Top left y coordinate of the region where we want to copy */ - uint16_t width, /* Width of the region we want to copy */ - uint16_t height); /* Height of the region we want to copy */ + int16_t src_x, /* Top left x coordinate of the region we want to copy */ + int16_t src_y, /* Top left y coordinate of the region we want to copy */ + int16_t dst_x, /* Top left x coordinate of the region where we want to copy */ + int16_t dst_y, /* Top left y coordinate of the region where we want to copy */ + uint16_t width, /* Width of the region we want to copy */ + uint16_t height); /* Height of the region we want to copy */
As you can see, we could copy the whole pixmap, as well as @@ -3143,7 +3143,7 @@ xcb_change_window_attributes (conn, window, mask, &value_list); structure. They are obtained by using a function that requires a xcb_connection_t * or a member of the xcb_setup_t structure - (via the function xcb_get_setup_t), or + (via the function xcb_get_setup), or a function that requires that structure.
You get the count of screens with the functions - xcb_get_setup_t + xcb_get_setup and - xcb_setup_roots_iterator_t + xcb_setup_roots_iterator (if you need to iterate):
@@ -3225,10 +3225,10 @@ screen_count = xcb_setup_roots_length (xcb_get_setup (c));
You get the name of the vendor of the server hardware with - the functions xcb_get_setup_t + the functions xcb_get_setup and xcb_setup_vendor_t. Beware + class="code">xcb_setup_vendor. Beware that, unlike Xlib, the string returned by XCB is not necessarily null-terminaled:
@@ -3250,7 +3250,7 @@ vendor[length] = '\0';You get the major version of the protocol in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3266,7 +3266,7 @@ protocol_major_version = xcb_get_setup (c)->protocol_major_version;You get the minor version of the protocol in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3282,7 +3282,7 @@ protocol_minor_version = xcb_get_setup (c)->protocol_minor_version;You get the number of the release of the server hardware in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3303,7 +3303,7 @@ release_number = xcb_get_setup (c)->release_number;You get the bitmap scanline unit in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3319,7 +3319,7 @@ bitmap_format_scanline_unit = xcb_get_setup (c)->bitmap_format_scanline_unit;You get the bitmap bit order in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3335,7 +3335,7 @@ bitmap_format_bit_order = xcb_get_setup (c)->bitmap_format_bit_order;You get the bitmap scanline pad in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c; @@ -3351,7 +3351,7 @@ bitmap_format_scanline_pad = xcb_get_setup (c)->bitmap_format_scanline_pad;You get the image byte order in the xcb_setup_t - structure, with the function xcb_get_setup_t: + structure, with the function xcb_get_setup:
xcb_connection_t *c;