Make wlr_signal_emit_safe private

This commit is contained in:
emersion 2018-02-12 19:45:58 +01:00
parent 10ecf871f2
commit 36ead80cd1
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
42 changed files with 41 additions and 42 deletions

View File

@ -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"

View File

@ -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>

View File

@ -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"

View File

@ -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) {

View File

@ -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,

View File

@ -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,

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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"

View File

@ -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;

View File

@ -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 };

View File

@ -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>

View File

@ -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;

View File

@ -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"

View File

@ -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"

View File

@ -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,

View File

@ -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;

View File

@ -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 = {

View File

@ -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);

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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,

View File

@ -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) {

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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>

View File

@ -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>

View File

@ -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) {

View File

@ -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>

View File

@ -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) {

View File

@ -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>

View File

@ -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>

View File

@ -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";

View File

@ -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

View File

@ -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"

View File

@ -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>