wlroots/include/rootston/server.h

38 lines
826 B
C
Raw Normal View History

2017-09-23 00:24:32 +00:00
#ifndef _ROOTSTON_SERVER_H
#define _ROOTSTON_SERVER_H
2018-02-12 20:29:23 +00:00
2017-09-23 00:24:32 +00:00
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
2018-02-12 20:29:23 +00:00
#include <wlr/config.h>
#include <wlr/render/wlr_renderer.h>
2018-02-12 20:29:23 +00:00
#include <wlr/types/wlr_data_device.h>
2017-12-26 17:51:27 +00:00
#ifdef 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"
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;
/* Global resources */
struct wlr_data_device_manager *data_device_manager;
2017-09-23 00:24:32 +00:00
};
extern struct roots_server server;
2017-09-23 00:24:32 +00:00
#endif