wlmaker
|
#include "util.h"
Classes | |
struct | _wlmtk_util_listener |
Functions | |
void | wlmtk_util_connect_listener_signal (struct wl_signal *signal_ptr, struct wl_listener *listener_ptr, void(*notifier_func)(struct wl_listener *, void *)) |
static void | test_listener (bs_test_t *test_ptr) |
static void | _wlmtk_util_listener_handler (struct wl_listener *listener_ptr, void *data_ptr) |
Variables | |
const bs_test_case_t | wlmtk_util_test_cases [] |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
static |
Test handler for the listener.
|
static |
A test to verify listener handlers are called in order of subscription.
void wlmtk_util_connect_listener_signal | ( | struct wl_signal * | signal_ptr, |
struct wl_listener * | listener_ptr, | ||
void(*)(struct wl_listener *, void *) | notifier_func ) |
Sets |notifier_func| as the notifier for |listener_ptr|, and registers it with |signal_ptr|.
This is merely a convenience helper for the usual two-liner of boilerplate. To disconnect from the listener signal, call wl_list_remove
on a reference to the link
element of *listener_ptr
.
signal_ptr | |
listener_ptr | |
notifier_func |
const bs_test_case_t wlmtk_util_test_cases[] |
Unit test cases.