wayland-util.h: add forward declaration for wl_object

Submitted by Chris Billington on March 6, 2019, 8:54 p.m.

Details

Message ID 20190306205431.18794-1-chrisjbillington@gmail.com
State Accepted
Commit 15cba8b07499feb43ee56510b3761d8ddabda45a
Headers show
Series "wayland-util.h: add forward declaration for wl_object" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Chris Billington March 6, 2019, 8:54 p.m.
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.
---
 src/wayland-util.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Patch hide | download patch | download mbox

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
  *

Comments