2017-09-23 02:24:32 +02:00
|
|
|
#ifndef _ROOTSTON_SERVER_H
|
|
|
|
#define _ROOTSTON_SERVER_H
|
|
|
|
#include <wayland-server.h>
|
2017-12-26 18:51:27 +01:00
|
|
|
#include "config.h"
|
2017-09-23 02:24:32 +02:00
|
|
|
#include <wlr/backend.h>
|
|
|
|
#include <wlr/backend/session.h>
|
2017-10-11 21:48:40 +02:00
|
|
|
#include <wlr/types/wlr_data_device.h>
|
2017-09-23 02:24:32 +02:00
|
|
|
#include <wlr/render.h>
|
2017-12-26 18:51:27 +01:00
|
|
|
#ifdef WLR_HAS_XWAYLAND
|
2017-09-23 02:24:32 +02:00
|
|
|
#include <wlr/xwayland.h>
|
2017-10-06 23:50:25 +02:00
|
|
|
#endif
|
2017-09-23 02:24:32 +02:00
|
|
|
#include "rootston/config.h"
|
|
|
|
#include "rootston/desktop.h"
|
|
|
|
#include "rootston/input.h"
|
|
|
|
|
2017-09-23 06:29:53 +02:00
|
|
|
struct roots_server {
|
2017-09-23 02:24:32 +02: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 06:29:53 +02:00
|
|
|
|
|
|
|
/* Global resources */
|
|
|
|
struct wlr_data_device_manager *data_device_manager;
|
2017-09-23 02:24:32 +02:00
|
|
|
};
|
|
|
|
|
2017-09-23 06:29:53 +02:00
|
|
|
extern struct roots_server server;
|
2017-09-23 02:24:32 +02:00
|
|
|
|
|
|
|
#endif
|