mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-31 07:11:27 -04:00
Add accessor functions for wl_resource and deprecate wl_client_add_resource
This is the first step towards making wl_resource an opaque pointer type. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
2c7468b868
commit
1488c96a5d
4 changed files with 95 additions and 20 deletions
|
|
@ -39,6 +39,13 @@ extern "C" {
|
|||
#define WL_EXPORT
|
||||
#endif
|
||||
|
||||
/* Deprecated attribute */
|
||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define WL_DEPRECATED __attribute__ ((deprecated))
|
||||
#else
|
||||
#define WL_DEPRECATED
|
||||
#endif
|
||||
|
||||
struct wl_message {
|
||||
const char *name;
|
||||
const char *signature;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue