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.
This commit is contained in:
Kristian Høgsberg 2008-12-21 23:37:12 -05:00
parent 8049cbb88a
commit ee02ca6fa4
7 changed files with 124 additions and 22 deletions

View file

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