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:
Jason Ekstrand 2013-06-01 17:40:54 -05:00 committed by Kristian Høgsberg
parent 2c7468b868
commit 1488c96a5d
4 changed files with 95 additions and 20 deletions

View file

@ -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;