wl_signal(3) | Wayland | wl_signal(3) |
wl_signal - A source of a type of observable event.
#include <wayland-server-core.h>
static void wl_signal_init (struct wl_signal
*signal)
static void wl_signal_add (struct wl_signal *signal, struct
wl_listener *listener)
static struct wl_listener * wl_signal_get (struct
wl_signal *signal, wl_notify_func_t notify)
static void wl_signal_emit (struct wl_signal *signal, void
*data)
struct wl_list listener_list
A source of a type of observable event.
Signals are recognized points where significant events can be observed. Compositors as well as the server can provide signals. Observers are wl_listener's that are added through wl_signal_add. Signals are emitted using wl_signal_emit, which will invoke all listeners until that listener is removed by wl_list_remove() (or whenever the signal is destroyed).
See also:
Add the specified listener to this signal.
Parameters:
Emits this signal, notifying all registered listeners.
Parameters:
Gets the listener struct for the specified callback.
Parameters:
Returns:
Initialize a new wl_signal for use.
Parameters:
Generated automatically by Doxygen for Wayland from the source code.
Wed Sep 5 2018 | Version 1.16.0 |