2017-09-23 00:24:32 +00:00
|
|
|
#ifndef _ROOTSTON_SERVER_H
|
|
|
|
#define _ROOTSTON_SERVER_H
|
2018-02-12 20:29:23 +00:00
|
|
|
|
2019-07-27 08:53:54 +00:00
|
|
|
#include <wayland-server-core.h>
|
2017-09-23 00:24:32 +00:00
|
|
|
#include <wlr/backend.h>
|
|
|
|
#include <wlr/backend/session.h>
|
2018-02-12 20:29:23 +00:00
|
|
|
#include <wlr/config.h>
|
2018-03-19 22:16:29 +00:00
|
|
|
#include <wlr/render/wlr_renderer.h>
|
2018-02-12 20:29:23 +00:00
|
|
|
#include <wlr/types/wlr_data_device.h>
|
2018-11-12 09:12:46 +00:00
|
|
|
#if WLR_HAS_XWAYLAND
|
2017-09-23 00:24:32 +00:00
|
|
|
#include <wlr/xwayland.h>
|
2017-10-06 21:50:25 +00:00
|
|
|
#endif
|
2017-09-23 00:24:32 +00:00
|
|
|
#include "rootston/config.h"
|
|
|
|
#include "rootston/desktop.h"
|
|
|
|
#include "rootston/input.h"
|
|
|
|
|
2017-09-23 04:29:53 +00:00
|
|
|
struct roots_server {
|
2017-09-23 00:24:32 +00:00
|
|
|
/* 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;
|
2017-09-23 04:29:53 +00:00
|
|
|
|
|
|
|
/* Global resources */
|
|
|
|
struct wlr_data_device_manager *data_device_manager;
|
2017-09-23 00:24:32 +00:00
|
|
|
};
|
|
|
|
|
2017-09-23 04:29:53 +00:00
|
|
|
extern struct roots_server server;
|
2017-09-23 00:24:32 +00:00
|
|
|
|
|
|
|
#endif
|