---
name: "wl_global"
section: "3"
platform: "linux"
package: "wayland-docs"
version: "1.26.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/wl_global"
---

# wl\_global(3)

## NAME

wl\_global

## 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

**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.

**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.

**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

### 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

## Author

Generated automatically by Doxygen for Wayland from the source code.
