Make wlr_signal_emit_safe private
This commit is contained in:
parent
10ecf871f2
commit
36ead80cd1
|
@ -11,7 +11,7 @@
|
|||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/types/wlr_list.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/render/egl.h>
|
||||
#include "backend/drm/drm.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/render/matrix.h>
|
||||
#include <wlr/render/gles2.h>
|
||||
#include <wlr/render.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <wlr/render/egl.h>
|
||||
#include <wlr/render/gles2.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/interfaces/wlr_input_device.h>
|
||||
#include "backend/headless.h"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <wlr/interfaces/wlr_tablet_tool.h>
|
||||
#include <wlr/interfaces/wlr_tablet_pad.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/headless.h"
|
||||
|
||||
static void input_device_destroy(struct wlr_input_device *wlr_dev) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <GLES2/gl2.h>
|
||||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/headless.h"
|
||||
|
||||
static EGLSurface egl_create_surface(struct wlr_egl *egl, unsigned int width,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <wlr/backend/session.h>
|
||||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
static int wlr_libinput_open_restricted(const char *path,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <wlr/interfaces/wlr_input_device.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wayland-util.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
struct wlr_input_device *get_appropriate_device(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/interfaces/wlr_pointer.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
struct wlr_pointer *wlr_libinput_pointer_create(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/interfaces/wlr_tablet_pad.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
struct wlr_tablet_pad *wlr_libinput_tablet_pad_create(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/interfaces/wlr_tablet_tool.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
struct wlr_tablet_tool *wlr_libinput_tablet_tool_create(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/interfaces/wlr_touch.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/libinput.h"
|
||||
|
||||
struct wlr_touch *wlr_libinput_touch_create(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/multi.h"
|
||||
#include "backend/drm/drm.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/backend/session/interface.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/session/direct-ipc.h"
|
||||
|
||||
const struct session_impl session_direct;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/backend/session/interface.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/session/direct-ipc.h"
|
||||
|
||||
enum { DRM_MAJOR = 226 };
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <wlr/config.h>
|
||||
#include <wlr/backend/session/interface.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
#ifdef WLR_HAS_SYSTEMD
|
||||
#include <systemd/sd-bus.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <wlr/backend/session.h>
|
||||
#include <wlr/backend/session/interface.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
extern const struct session_impl session_logind;
|
||||
extern const struct session_impl session_direct;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/interfaces/wlr_input_device.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/wayland.h"
|
||||
#include "xdg-shell-unstable-v6-client-protocol.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <GLES2/gl2.h>
|
||||
#include <wlr/interfaces/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/wayland.h"
|
||||
#include "xdg-shell-unstable-v6-client-protocol.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/interfaces/wlr_keyboard.h>
|
||||
#include <wlr/interfaces/wlr_touch.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/wayland.h"
|
||||
|
||||
static void pointer_handle_enter(void *data, struct wl_pointer *wl_pointer,
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include <wlr/interfaces/wlr_keyboard.h>
|
||||
#include <wlr/interfaces/wlr_pointer.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "backend/x11.h"
|
||||
|
||||
static struct wlr_backend_impl backend_impl;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/render/interface.h>
|
||||
#include <wlr/render/matrix.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "render/gles2.h"
|
||||
|
||||
static struct pixel_format external_pixel_format = {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <wlr/types/wlr_xcursor_manager.h>
|
||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "rootston/server.h"
|
||||
#include "rootston/seat.h"
|
||||
#include "rootston/xcursor.h"
|
||||
|
@ -384,7 +383,7 @@ struct roots_subsurface *subsurface_create(struct roots_view *view,
|
|||
|
||||
void view_finish(struct roots_view *view) {
|
||||
view_damage_whole(view);
|
||||
wlr_signal_emit_safe(&view->events.destroy, view);
|
||||
wl_signal_emit(&view->events.destroy, view);
|
||||
|
||||
wl_list_remove(&view->new_subsurface.link);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_region.h>
|
||||
#include <wlr/types/wlr_compositor.h>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <unistd.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_data_device.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <wlr/types/wlr_gamma_control.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "gamma-control-protocol.h"
|
||||
|
||||
static void resource_destroy(struct wl_client *client,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_idle.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "idle-protocol.h"
|
||||
|
||||
static void idle_timeout_destroy(struct wlr_idle_timeout *timer) {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/interfaces/wlr_tablet_tool.h>
|
||||
#include <wlr/interfaces/wlr_tablet_pad.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
void wlr_input_device_init(struct wlr_input_device *dev,
|
||||
enum wlr_input_device_type type,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wlr/interfaces/wlr_keyboard.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
int os_create_anonymous_file(off_t size);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <wlr/render/matrix.h>
|
||||
#include <wlr/render.h>
|
||||
#include <wlr/util/region.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
static void wl_output_send_to_resource(struct wl_resource *resource) {
|
||||
assert(resource);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_box.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/types/wlr_output_damage.h>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
#include <wlr/types/wlr_box.h>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <wlr/types/wlr_primary_selection.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
static void offer_handle_receive(struct wl_client *client,
|
||||
struct wl_resource *resource, const char *mime_type, int32_t fd) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_data_device.h>
|
||||
#include <wlr/types/wlr_primary_selection.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_server_decoration.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
static void server_decoration_handle_release(struct wl_client *client,
|
||||
struct wl_resource *resource) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/region.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/render/interface.h>
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/render/egl.h>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <assert.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_wl_shell.h>
|
||||
#include <wayland-server-protocol.h>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "xdg-shell-unstable-v6-protocol.h"
|
||||
|
||||
static const char *wlr_desktop_xdg_toplevel_role = "xdg_toplevel";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
|
||||
static void handle_noop(struct wl_listener *listener, void *data) {
|
||||
// Do nothing
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/xwayland.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include "sockets.h"
|
||||
#include "wlr/xwm.h"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <wlr/config.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <wlr/util/edges.h>
|
||||
#include <wlr/util/signal.h>
|
||||
#include "util/signal.h"
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/xwayland.h>
|
||||
#include <wlr/xcursor.h>
|
||||
|
|
Loading…
Reference in New Issue