mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-27 06:59:46 -05:00
Add wlr_wl_compositor and remove wlr_wl_shm
This commit is contained in:
parent
8a18cf456a
commit
f5b7bc033e
11 changed files with 98 additions and 102 deletions
|
|
@ -19,8 +19,9 @@ struct wlr_output_state;
|
|||
struct wlr_output {
|
||||
const struct wlr_output_impl *impl;
|
||||
struct wlr_output_state *state;
|
||||
void *user_data;
|
||||
struct wl_global *wl_global;
|
||||
struct wl_list resource_list;
|
||||
struct wl_list wl_resources;
|
||||
|
||||
uint32_t flags;
|
||||
char name[16];
|
||||
|
|
|
|||
25
include/wlr/wayland/wlr_compositor.h
Normal file
25
include/wlr/wayland/wlr_compositor.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef _WLR_COMPOSITOR_H
|
||||
#define _WLR_COMPOSITOR_H
|
||||
#include <wayland-server.h>
|
||||
|
||||
struct wlr_compositor_state;
|
||||
|
||||
struct wlr_compositor {
|
||||
struct wlr_compositor_state *state;
|
||||
void *user_data;
|
||||
struct wl_global *wl_global;
|
||||
struct wl_list wl_resources;
|
||||
|
||||
struct {
|
||||
/** Emits a reference to the wl_resource just created */
|
||||
struct wl_signal bound;
|
||||
/** Emits a reference to the wl_surface just created */
|
||||
struct wl_signal create_surface;
|
||||
/** Emits a reference to the wl_region just created */
|
||||
struct wl_signal create_region;
|
||||
} events;
|
||||
};
|
||||
|
||||
struct wlr_compositor *wlr_compositor_init(struct wl_display *display);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#ifndef _WLR_WLCORE_WL_SHM_H
|
||||
#define _WLR_WLCORE_WL_SHM_H
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/render.h>
|
||||
|
||||
struct wlr_wl_shm;
|
||||
|
||||
struct wlr_wl_shm *wlr_wl_shm_init(struct wl_display *display);
|
||||
void wlr_wl_shm_add_format(struct wlr_wl_shm *shm, enum wl_shm_format format);
|
||||
void wlr_wl_shm_add_renderer_formats(
|
||||
struct wlr_wl_shm *shm, struct wlr_renderer *renderer);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue