wl_global(3)
π wl_global π
okay bestie, welcome to the wl_global page from the Wayland library functions manual πΈ this is a struct + a lil family of getter functions, and it's lowkey the whole vibe of how globals get exposed to clients. let's get into it β¨
π NAME π
wl_global β no cap, that's the name, that's the whole thing π
β¨ SYNOPSIS β¨
π«Ά Public Member Functions
uint32_t wl_global_get_name (const struct wl_global *global, const
struct wl_client *client)
uint32_t wl_global_get_version (const struct wl_global *global)
struct wl_display * wl_global_get_display (const struct wl_global
*global)
π¦ Data Fields
struct wl_display * display
const struct wl_interface * interface
struct wl_list offer_list
uint32_t name
uint32_t version
void * data
wl_global_bind_func_t bind
wl_global_withdrawn_func_t withdrawn
struct wl_list link
bool unpublished
π Member Function Documentation π
π struct wl_display * wl_global_get_display (const struct wl_global * global)
Get the display object for the given global π« like, "which display does this global belong to?" β that one.
Parameters
globalβ the global object
Returns
The display object the global is associated with.
Since
1.20
π uint32_t wl_global_get_name (const struct wl_global * global, const struct wl_client * client)
Get the name of the global β¨ the lil peek at what it's called.
Parameters
globalβ the global object.clientβ client for which to look up the global.
Returns
The name of the global, or 0 if the global is not visible to the client. (yes bestie, 0 is the "not for you" answer π)
Since
1.22
π uint32_t wl_global_get_version (const struct wl_global * global)
Get the version of the given global π
Parameters
globalβ the global object.
Returns
The version advertised by the global.
Since
1.21
π Field Documentation π
so here's the thing β the original page lists these fields but doesn't give a description for any of them, so i'm not gonna invent lore that isn't there π«Ά i'm just gonna present them, exactly as they are, in this exact order:
π§ wl_global_bind_func_t wl_global::bind
π§ void* wl_global::data
π§ struct wl_display* wl_global::display
π§ const struct wl_interface* wl_global::interface
π§ struct wl_list wl_global::link
π§ uint32_t wl_global::name
π§ struct wl_list wl_global::offer_list
π§ bool wl_global::unpublished
π§ uint32_t wl_global::version
π§ wl_global_withdrawn_func_t wl_global::withdrawn
π and that's genuinely it for the field docs β no descriptions given, so i'm not about to make stuff up. main character energy is knowing when to stay quiet, fr fr.
πΈ Author πΈ
Generated automatically by Doxygen for Wayland from the source code. (not me writing it by hand, it's the robot π )
and that's a wrap, bestie π this page is straight outta Wayland, Version 1.26.0 β go forth and slay those globals β¨ππ¦
π¦ where this page comes from
- arch rolling: wayland-docs 1.26.0-1 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- nixpkgs unstable: wayland 1.26.0
- ubuntu stonking: libwayland-doc 1.26.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms