mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Rename functions to be consistent with #93
This commit is contained in:
parent
f10da8291b
commit
46823152ea
9 changed files with 22 additions and 22 deletions
|
|
@ -15,11 +15,11 @@ static const struct session_impl *impls[] = {
|
|||
NULL,
|
||||
};
|
||||
|
||||
struct wlr_session *wlr_session_start(struct wl_display *disp) {
|
||||
struct wlr_session *wlr_session_create(struct wl_display *disp) {
|
||||
const struct session_impl **iter;
|
||||
|
||||
for (iter = impls; *iter; ++iter) {
|
||||
struct wlr_session *session = (*iter)->start(disp);
|
||||
struct wlr_session *session = (*iter)->create(disp);
|
||||
if (session) {
|
||||
return session;
|
||||
}
|
||||
|
|
@ -29,12 +29,12 @@ struct wlr_session *wlr_session_start(struct wl_display *disp) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void wlr_session_finish(struct wlr_session *session) {
|
||||
void wlr_session_destroy(struct wlr_session *session) {
|
||||
if (!session) {
|
||||
return;
|
||||
}
|
||||
|
||||
session->impl->finish(session);
|
||||
session->impl->destroy(session);
|
||||
};
|
||||
|
||||
int wlr_session_open_file(struct wlr_session *session, const char *path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue