mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-24 09:06:39 -04:00
treewide: make type-check helpers take const pointers
This commit is contained in:
parent
3336d28813
commit
14b3c96c1e
26 changed files with 38 additions and 38 deletions
|
|
@ -218,7 +218,7 @@ static const struct wlr_backend_impl backend_impl = {
|
|||
.get_drm_fd = backend_get_drm_fd,
|
||||
};
|
||||
|
||||
bool wlr_backend_is_x11(struct wlr_backend *backend) {
|
||||
bool wlr_backend_is_x11(const struct wlr_backend *backend) {
|
||||
return backend->impl == &backend_impl;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -711,7 +711,7 @@ void handle_x11_configure_notify(struct wlr_x11_output *output,
|
|||
wlr_output_state_finish(&state);
|
||||
}
|
||||
|
||||
bool wlr_output_is_x11(struct wlr_output *wlr_output) {
|
||||
bool wlr_output_is_x11(const struct wlr_output *wlr_output) {
|
||||
return wlr_output->impl == &output_impl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue