diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-10-07 10:10:36 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-10-07 10:10:36 -0400 |
commit | a67a71a7cf2f6cf17cb10eeeb4e9bb867bb9eb40 (patch) | |
tree | 1ae3075a2ee614b6f4754b4135551a4e01d7614c /wayland.h | |
parent | 33bea964cae3791cc00173b62e82089168f87804 (diff) | |
download | wayland-a67a71a7cf2f6cf17cb10eeeb4e9bb867bb9eb40.tar.gz wayland-a67a71a7cf2f6cf17cb10eeeb4e9bb867bb9eb40.tar.xz wayland-a67a71a7cf2f6cf17cb10eeeb4e9bb867bb9eb40.zip |
Bunch of new stuff: simple compositor, cairo+gem use in client, events.
Diffstat (limited to 'wayland.h')
-rw-r--r-- | wayland.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -18,6 +18,10 @@ struct wl_event_source *wl_event_loop_add_fd(struct wl_event_loop *loop, int fd, uint32_t mask, wl_event_loop_func_t func, void *data); +int wl_event_loop_update_source(struct wl_event_loop *loop, + struct wl_event_source *source, + uint32_t mask); + int wl_event_loop_remove_source(struct wl_event_loop *loop, struct wl_event_source *source); int wl_event_loop_wait(struct wl_event_loop *loop); @@ -52,11 +56,17 @@ struct wl_method { const struct wl_argument *arguments; }; +struct wl_event { + const char *name; +}; + struct wl_interface { const char *name; int version; int method_count; const struct wl_method *methods; + int event_count; + const struct wl_event *events; }; struct wl_object { @@ -64,4 +74,26 @@ struct wl_object { uint32_t id; }; +struct wl_surface; +struct wl_display; + +struct wl_compositor { + struct wl_compositor_interface *interface; +}; + +struct wl_compositor_interface { + void (*notify_surface_create)(struct wl_compositor *compositor, + struct wl_surface *surface); + + void (*notify_surface_attach)(struct wl_compositor *compositor, + struct wl_surface *surface, uint32_t name, + uint32_t width, uint32_t height, uint32_t stride); +}; + +struct wl_compositor *wl_compositor_create(void); + +void wl_display_set_compositor(struct wl_display *display, + struct wl_compositor *compositor); + + #endif |