xcb_free_colors(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

πŸ’– NAME πŸ’–

xcb_free_colors β€” it's an XCB request from the XCB Requests manual, bestie. The title line says xcb_free_colors(3) and the whole thing lives in libxcb, so you know it's ✨real✨.


πŸŽ€ SYNOPSIS πŸŽ€

First things first, you gotta pull in the header:

#include <xcb/xproto.h>

πŸ¦‹ Request function πŸ¦‹

xcb_void_cookie_t xcb_free_colors(xcb_connection_t *conn,
       xcb_colormap_t cmap, uint32_t plane_mask, uint32_t pixels_len,
       const uint32_t *pixels);

Look at that signature. She's giving void cookie, she's giving colormap energy. Periodt.


🌸 REQUEST ARGUMENTS 🌸

  • conn β€” The XCB connection to X11. Your lil lifeline to the server, no cap.
  • cmap β€” TODO: NOT YET DOCUMENTED. (Yeah girl, the docs said "we'll get to it" and then… didn't. 😭)
  • plane_mask β€” TODO: NOT YET DOCUMENTED. The mystery continues.
  • pixels_len β€” TODO: NOT YET DOCUMENTED. Still a mystery.
  • pixels β€” TODO: NOT YET DOCUMENTED. Four for four on the mystery front, iconic honestly.

πŸ™ˆ DESCRIPTION πŸ™ˆ

So… the description section? It's literally empty. Not a single word. The vibe is silence, the vibe is mystery, the vibe is read the source code iykyk. 🫢


⭐ RETURN VALUE ⭐

She hands you back an xcb_void_cookie_t. Any errors (if there even are any) have to be handled in the event loop, bestie β€” that's just how it works around here.

But wait β€” if you'd rather handle errors directly with xcb_request_check instead, use xcb_free_colors_checked. See xcb-requests(3) for all the deets. πŸ‘‘


πŸ’€ ERRORS πŸ’€

Okay so hear me out: this request does never generate any errors. Zero. None. Not a single one. She's flawless, she's unbothered, she's not gonna pop up in your error handling. πŸ’…


🌈 SEE ALSO 🌈

Nothing here. Empty. A lil blank space where the cross-references should be. We move. 🧚


✨ AUTHOR ✨

Generated from xproto.xml. If you spot something that needs fixing or improving, hit up xcb@lists.freedesktop.org β€” they're taking corrections and improvements, fr fr. πŸ“§


That's the whole page, babe. Short, sweet, and full of TODOs. Not her fault, she's just built different. πŸ’œ

Kisses from the XCB manual β€” this was xcb_free_colors(3), X Version 11, libxcb 1.17.0. Byeee, go free some colors! πŸŽ€πŸ¦‹πŸ’–