Blender V4.3
GWL_RegistryEntry Struct Reference

Public Attributes

GWL_RegistryEntrynext = nullptr
 
void * user_data = nullptr
 
uint32_t name = WL_NAME_UNSET
 
uint32_t version
 
int interface_slot = 0
 

Detailed Description

Registered global objects can be removed by the compositor, these entries are a registry of objects and callbacks to properly remove them. These are also used to remove all registered objects before exiting.

Definition at line 1715 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ interface_slot

int GWL_RegistryEntry::interface_slot = 0

The index in gwl_registry_handlers, useful for accessing the interface name (for logging for example).

Definition at line 1734 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_entry_add(), gwl_registry_entry_remove_by_interface_slot(), and gwl_registry_entry_remove_by_name().

◆ name

uint32_t GWL_RegistryEntry::name = WL_NAME_UNSET

A unique identifier used as a handle by wl_registry_listener.global_remove.

Definition at line 1725 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_entry_add(), and gwl_registry_entry_remove_by_name().

◆ next

◆ user_data

void* GWL_RegistryEntry::user_data = nullptr

Optional pointer passed to remove_fn, typically the container in GWL_Display in cases multiple instances of the same interface are supported.

Definition at line 1721 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_entry_add(), gwl_registry_entry_remove_by_interface_slot(), and gwl_registry_entry_remove_by_name().

◆ version

uint32_t GWL_RegistryEntry::version

Version passed by the add callback.

Definition at line 1729 of file GHOST_SystemWayland.cc.

Referenced by gwl_registry_entry_add().


The documentation for this struct was generated from the following file: