mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
Make implementation function lists static const
This requires a change to the type of `struct wlr_tablet` and `wlr_tablet_init` signature, both of which are part of the unstable API.
This commit is contained in:
parent
b6dea80907
commit
a290d7a78d
15 changed files with 31 additions and 31 deletions
|
|
@ -25,7 +25,7 @@ extern const struct session_impl session_logind;
|
|||
extern const struct session_impl session_direct;
|
||||
extern const struct session_impl session_noop;
|
||||
|
||||
static const struct session_impl *impls[] = {
|
||||
static const struct session_impl *const impls[] = {
|
||||
#if WLR_HAS_LIBSEAT
|
||||
&session_libseat,
|
||||
#endif
|
||||
|
|
@ -137,7 +137,7 @@ struct wlr_session *wlr_session_create(struct wl_display *disp) {
|
|||
env_wlr_session);
|
||||
}
|
||||
} else {
|
||||
const struct session_impl **iter;
|
||||
const struct session_impl *const *iter;
|
||||
for (iter = impls; !session && *iter; ++iter) {
|
||||
session = (*iter)->create(disp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue