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.
This commit is contained in:
parent
5923e0edc9
commit
6444da6093
2 changed files with 5 additions and 5 deletions
|
@ -213,7 +213,7 @@ static int poll_connection(struct backend_logind *backend, int timeout) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int dispatch_background(struct libseat *base, int timeout) {
|
||||
static int dispatch_and_execute(struct libseat *base, int timeout) {
|
||||
struct backend_logind *backend = backend_logind_from_libseat_backend(base);
|
||||
if (backend->initial_setup) {
|
||||
backend->initial_setup = false;
|
||||
|
@ -688,5 +688,5 @@ const struct seat_impl logind_impl = {
|
|||
.close_device = close_device,
|
||||
.switch_session = switch_session,
|
||||
.get_fd = get_fd,
|
||||
.dispatch = dispatch_background,
|
||||
.dispatch = dispatch_and_execute,
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue