summaryrefslogtreecommitdiff
path: root/wayland-protocol.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-12-21 23:37:12 -0500
committerKristian Høgsberg <krh@redhat.com>2008-12-21 23:37:12 -0500
commitee02ca6fa489a99ddec5d1542d51cce9948d39a9 (patch)
tree079e7e4462fe5f365f5a6f3530b666a922ffcf12 /wayland-protocol.c
parent8049cbb88a4d2c93cdee9188eeb1d219aebcd343 (diff)
Add hook to allow globals to send cold-plug events to new clients.
This lets us boot strap the client side state cache. This commit also adds the first user of this feature, an output object that represents the current output. Very simple at this point, but will grow to something more like RandR 1.2.
Diffstat (limited to 'wayland-protocol.c')
-rw-r--r--wayland-protocol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/wayland-protocol.c b/wayland-protocol.c
index 4c61810..4ec40ab 100644
--- a/wayland-protocol.c
+++ b/wayland-protocol.c
@@ -83,3 +83,14 @@ WL_EXPORT const struct wl_interface wl_input_device_interface = {
0, NULL,
ARRAY_LENGTH(input_device_events), input_device_events,
};
+
+
+static const struct wl_message output_events[] = {
+ { "presence", "uu" },
+};
+
+WL_EXPORT const struct wl_interface wl_output_interface = {
+ "output", 1,
+ 0, NULL,
+ ARRAY_LENGTH(output_events), output_events,
+};