xcb_change_hosts(3)
π xcb_change_hosts β the manual page, bestie edition (section 3) π
okay so. picture this: you're deep in XCB, you're vibing with X11, and you need to touch the host list. that's this. xcb_change_hosts lives in section 3 of the manual, and it's giving "small request, big responsibilities." let's get into it β¨
πΈ NAME πΈ
xcb_change_hosts β
(and that's it. that's the whole name section. the original left it blank, so we leave it blank, no cap π«Ά)
π SYNOPSIS π
first up, the include. you need the X protocol header, obviously:
#include <xcb/xproto.h>
β¨ Request function β¨
and here's the function signature, character for character, don't you dare touch it:
xcb_void_cookie_t xcb_change_hosts(xcb_connection_t *conn, uint8_t mode,
uint8_t family, uint16_t address_len, const uint8_t *address);
π¦ REQUEST ARGUMENTS π¦
let's go through the args one by one, main character energy only π
connβ your XCB connection to X11. the whole link to the display, the lifeline, the situationship. you need it.modeβ one of these values, okay?XCB_HOST_MODE_INSERTβTODO: NOT YET DOCUMENTED.XCB_HOST_MODE_DELETEβTODO: NOT YET DOCUMENTED.TODO: NOT YET DOCUMENTED.
yes bestie, that last dangling TODO: NOT YET DOCUMENTED. is really sitting there in the original, just hanging out with no option name next to it. we're not deleting it. it stays. it's part of the family now π
familyβ one of these values, bestie:XCB_FAMILY_INTERNETβTODO: NOT YET DOCUMENTED.XCB_FAMILY_DECNETβTODO: NOT YET DOCUMENTED.XCB_FAMILY_CHAOSβTODO: NOT YET DOCUMENTED.XCB_FAMILY_SERVER_INTERPRETEDβTODO: NOT YET DOCUMENTED.XCB_FAMILY_INTERNET_6βTODO: NOT YET DOCUMENTED.TODO: NOT YET DOCUMENTED.
and look, another orphaned TODO: NOT YET DOCUMENTED. floating at the bottom of the list. iconic. we keep it. π«Ά
address_lenβTODO: NOT YET DOCUMENTED.addressβTODO: NOT YET DOCUMENTED.
π DESCRIPTION π
...and that's literally it. the DESCRIPTION section is empty in the original. no description. zero. void. nothing. the audacity? lowkey legendary. π
π RETURN VALUE π
this one hands you back an xcb_void_cookie_t. and because it's a void cookie, any errors (if there even are any) have to be handled over in the event loop, not right here. that's just how the void cookie girlies operate.
but if you'd rather grab your errors directly, bestie, use xcb_request_check instead β and for that you want xcb_change_hosts_checked, not this one. head over to xcb-requests(3) for all the deets on how that works. π
β ERRORS β
good news, and it's genuinely good news: this request never generates any errors. none. not a single one. a peaceful, drama-free request. we love that for us. ποΈβ¨
π SEE ALSO π
(empty. nothing here. the SEE ALSO section said absolutely nothing, so we say absolutely nothing back. respectfully. π«Ά)
π AUTHOR π
generated from xproto.xml. wanna send corrections or improvements? contact xcb@lists.freedesktop.org β they're the ones to hit up, fr fr. π
and that's the whole page, babes. sending you off with all the love: this one came from X Version 11, shipping as part of libxcb 1.17.0 β go forth, change those hosts, and stay hydrated. mwah. π
ππ¦πΈβ¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms