@ -18,6 +18,7 @@
# include <wlr/util/log.h>
# include <wlr/util/log.h>
# include "backend/backend.h"
# include "backend/backend.h"
# include "backend/multi.h"
# include "backend/multi.h"
# include "util/signal.h"
# if WLR_HAS_X11_BACKEND
# if WLR_HAS_X11_BACKEND
# include <wlr/backend/x11.h>
# include <wlr/backend/x11.h>
@ -32,6 +33,10 @@ void wlr_backend_init(struct wlr_backend *backend,
wl_signal_init ( & backend - > events . new_output ) ;
wl_signal_init ( & backend - > events . new_output ) ;
}
}
void wlr_backend_finish ( struct wlr_backend * backend ) {
wlr_signal_emit_safe ( & backend - > events . destroy , backend ) ;
}
bool wlr_backend_start ( struct wlr_backend * backend ) {
bool wlr_backend_start ( struct wlr_backend * backend ) {
if ( backend - > impl - > start ) {
if ( backend - > impl - > start ) {
return backend - > impl - > start ( backend ) ;
return backend - > impl - > start ( backend ) ;