aboutsummaryrefslogtreecommitdiff
path: root/include/util/global.h
blob: ea0fda83b459e8c0f65bcabcda77eca25d44e055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UTIL_GLOBAL_H
#define UTIL_GLOBAL_H

#include <wayland-server-core.h>

/**
 * Destroy a transient global.
 *
 * Globals that are created and destroyed on the fly need special handling to
 * prevent race conditions with wl_registry. Use this function to destroy them.
 */
void wlr_global_destroy_safe(struct wl_global *global,
	struct wl_display *display);

#endif