xcb_sync_set_counter(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_sync_set_counter πŸ’–

okay so bestie, welcome to the manual page for xcb_sync_set_counter(3) β€” that's the one, that's the girl, she's part of the XCB Requests gang and she's here to set a counter. no cap. ✨


✨ NAME ✨

xcb_sync_set_counter β€” the name says it all and also says nothing, we love a mysterious queen πŸ’…


🌸 SYNOPSIS 🌸

first up, you gotta pull in the header or nothing works, obviously:

#include <xcb/sync.h>

πŸŽ€ Request function πŸŽ€

xcb_void_cookie_t xcb_sync_set_counter(xcb_connection_t *conn,
       xcb_sync_counter_t counter, xcb_sync_int64_t value);

look at her. three args, one cookie, zero drama. iconic.


πŸ¦‹ REQUEST ARGUMENTS πŸ¦‹

  • conn β€” the XCB connection to X11. your little pipeline to the X server, your main character linkup, you already know 🫢
  • counter β€” TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it" and then did not get to it 😭 not me reading a TODO in a manpage in the year of our lord
  • value β€” TODO: NOT YET DOCUMENTED. same energy, same blank stare, the mystery continues πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

so here's the thing bestie... this section is literally empty. no prose. no lore. no vibe. just the heading sitting there looking pretty πŸ’€ the DESCRIPTION of this request is a void and we respect the void's privacy.


⭐ RETURN VALUE ⭐

she hands you back an xcb_void_cookie_t. that's it, that's the whole return, no payload, just a little receipt 🧾

and listen, because this matters: errors (if any) have to be handled in the event loop. you do not get to just ignore them and walk away, okay? handle them. in the event loop. where they live.

if you'd rather catch errors directly with xcb_request_check instead, then you want the checked version: xcb_sync_set_counter_checked. same girl, slightly different personality. peek xcb-requests(3) for the details πŸ’–


πŸ’€ ERRORS πŸ’€

good news for once: this request does never generate any errors. zero. none. nothing. she's unproblematic, she's low maintenance, she's the friend who never starts drama 🌸


🌈 SEE ALSO 🌈

...and that's it, that's the list. empty. nothing to see here, no cross-references, no friends of hers, just a lonely heading vibing in the corner πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Generated from sync.xml. if you spot something wrong and wanna send corrections and improvements, hit up xcb@lists.freedesktop.org β€” they're taking notes, bestie, and they want yours πŸ’Œ


okay and finally, the cute sign-off because we always do the cute sign-off: this whole thing comes to you from X Version 11, running on libxcb 1.17.0, under the name xcb_sync_set_counter(3) πŸŽ€ go set a counter, you absolute legend, ily, bye πŸ’–βœ¨