Establish multi backend support

This commit is contained in:
Drew DeVault 2017-06-12 22:22:40 -04:00
parent 5dd96c0772
commit e257afeb7e
5 changed files with 151 additions and 6 deletions

13
include/backend/multi.h Normal file
View file

@ -0,0 +1,13 @@
#ifndef _WLR_MULTI_BACKEND_INTERNAL
#define _WLR_MULTI_BACKEND_INTERNAL
#include <wlr/backend/interface.h>
#include <wlr/backend/multi.h>
#include <wlr/common/list.h>
struct wlr_backend_state {
struct wlr_backend *backend;
list_t *backends;
};
#endif

View file

@ -0,0 +1,10 @@
#ifndef _WLR_BACKEND_MULTI_H
#define _WLR_BACKEND_MULTI_H
#include <wlr/backend.h>
struct wlr_backend *wlr_multi_backend_create();
void wlr_multi_backend_add(struct wlr_backend *multi,
struct wlr_backend *backend);
#endif