diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-07-09 00:16:10 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-07-09 00:16:10 +0200 |
commit | 6444da60930fbe92b8c7e868372c90887853e60b (patch) | |
tree | 70e6cedbd1936e06d9d158cfb6b7ab6ec51644ce /libseat/backend/seatd.c | |
parent | 5923e0edc9bb157cf6398b63d51cc3c0aaf06001 (diff) |
libseat: Rename dispatch_background in backends
This name never made much sense. dispatch_and_execute is more
meaningful, especially when compared to the non-executing dispatch
function.
Diffstat (limited to 'libseat/backend/seatd.c')
-rw-r--r-- | libseat/backend/seatd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 3600b50..96b4681 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -326,7 +326,7 @@ static int get_fd(struct libseat *base) { return backend->connection.fd; } -static int dispatch_background(struct libseat *base, int timeout) { +static int dispatch_and_execute(struct libseat *base, int timeout) { struct backend_seatd *backend = backend_seatd_from_libseat_backend(base); if (backend->error) { errno = ENOTCONN; @@ -575,7 +575,7 @@ const struct seat_impl seatd_impl = { .close_device = close_device, .switch_session = switch_session, .get_fd = get_fd, - .dispatch = dispatch_background, + .dispatch = dispatch_and_execute, }; #ifdef BUILTIN_ENABLED @@ -660,6 +660,6 @@ const struct seat_impl builtin_impl = { .close_device = close_device, .switch_session = switch_session, .get_fd = get_fd, - .dispatch = dispatch_background, + .dispatch = dispatch_and_execute, }; #endif |