diff options
Diffstat (limited to 'include/rootston/server.h')
-rw-r--r-- | include/rootston/server.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/rootston/server.h b/include/rootston/server.h new file mode 100644 index 00000000..d9fa8f9e --- /dev/null +++ b/include/rootston/server.h @@ -0,0 +1,34 @@ +#ifndef _ROOTSTON_SERVER_H +#define _ROOTSTON_SERVER_H +#include <wayland-server.h> +#include <wlr/backend.h> +#include <wlr/backend/session.h> +#include <wlr/types/wlr_data_device_manager.h> +#include <wlr/render.h> +#include <wlr/xwayland.h> +#include "rootston/config.h" +#include "rootston/desktop.h" +#include "rootston/input.h" + +struct roots_server { + /* Rootston resources */ + struct roots_config *config; + struct roots_desktop *desktop; + struct roots_input *input; + + /* Wayland resources */ + struct wl_display *wl_display; + struct wl_event_loop *wl_event_loop; + + /* WLR tools */ + struct wlr_backend *backend; + struct wlr_renderer *renderer; + struct wlr_xwayland *xwayland; + + /* Global resources */ + struct wlr_data_device_manager *data_device_manager; +}; + +extern struct roots_server server; + +#endif |