aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-18 22:01:22 -0500
committerDrew DeVault <sir@cmpwn.com>2015-11-18 22:01:22 -0500
commit82db2a57a9ab171e77a0765df5dd0b2d92cb4f70 (patch)
tree024d67d41888e4a14d7e3e281d4115e7268797fd /include
parentfb0bfa13ce8b5f71e4ba1570dd6d39f98a2f5fdf (diff)
Basic support for extensions in server and clients
Diffstat (limited to 'include')
-rw-r--r--include/client/client.h4
-rw-r--r--include/extensions.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/client/client.h b/include/client/client.h
index b823235b..30ec25c0 100644
--- a/include/client/client.h
+++ b/include/client/client.h
@@ -2,6 +2,7 @@
#define _CLIENT_H
#include <wayland-client.h>
+#include "wayland-desktop-shell-client-protocol.h"
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
#include <stdbool.h>
@@ -41,13 +42,14 @@ struct client_state {
struct wl_surface *surface;
struct wl_shell_surface *shell_surface;
struct wl_callback *frame_cb;
+ struct desktop_shell *desktop_shell;
struct cursor cursor;
uint32_t width, height;
cairo_t *cairo;
list_t *outputs;
};
-struct client_state *client_setup(uint32_t width, uint32_t height);
+struct client_state *client_setup(uint32_t width, uint32_t height, bool shell_surface);
void client_teardown(struct client_state *state);
int client_prerender(struct client_state *state);
int client_render(struct client_state *state);
diff --git a/include/extensions.h b/include/extensions.h
new file mode 100644
index 00000000..e122c59a
--- /dev/null
+++ b/include/extensions.h
@@ -0,0 +1,6 @@
+#ifndef _SWAY_EXTENSIONS_H
+#define _SWAY_EXTENSIONS_H
+
+void register_extensions(void);
+
+#endif