summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Billington <chrisjbillington@gmail.com>2019-03-06 15:54:31 -0500
committerPekka Paalanen <pekka.paalanen@collabora.com>2019-03-07 11:33:26 +0200
commit15cba8b07499feb43ee56510b3761d8ddabda45a (patch)
treeb2e315dd0eef681692806b21941892c63f54ebbc
parent75bd70c0b335a8bbbbb030e5be1557a4bc02a86d (diff)
wayland-util.h: add forward declaration for wl_object
The definition of wl_argument in wayland-util.h references wl_object, so wl_object ought to be defined in wayland-util.h. This resolves gitlab issue #78. Fixes: https://gitlab.freedesktop.org/wayland/wayland/issues/78 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r--src/wayland-util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h
index b6cbe0e..2115f5c 100644
--- a/src/wayland-util.h
+++ b/src/wayland-util.h
@@ -68,6 +68,20 @@ extern "C" {
#define WL_PRINTF(x, y)
#endif
+/** \class wl_object
+ *
+ * \brief A protocol object.
+ *
+ * A `wl_object` is an opaque struct identifying the protocol object
+ * underlying a `wl_proxy` or `wl_resource`.
+ *
+ * \note Functions accessing a `wl_object` are not normally used by client code.
+ * Clients should normally use the higher level interface generated by the
+ * scanner to interact with compositor objects.
+ *
+ */
+struct wl_object;
+
/**
* Protocol message signature
*