libseat: Rename libseat_impl to seat_impl

This commit is contained in:
Kenny Levinsen 2020-08-05 23:33:01 +02:00
parent 493cc2a97d
commit 3586530d81
4 changed files with 13 additions and 13 deletions

View file

@ -3,19 +3,19 @@
#include "libseat.h" #include "libseat.h"
struct libseat_impl; struct seat_impl;
struct libseat_seat_listener; struct libseat_seat_listener;
struct libseat { struct libseat {
const struct libseat_impl *impl; const struct seat_impl *impl;
}; };
struct named_backend { struct named_backend {
const char *name; const char *name;
const struct libseat_impl *backend; const struct seat_impl *backend;
}; };
struct libseat_impl { struct seat_impl {
struct libseat *(*open_seat)(struct libseat_seat_listener *listener, void *data); struct libseat *(*open_seat)(struct libseat_seat_listener *listener, void *data);
int (*disable_seat)(struct libseat *seat); int (*disable_seat)(struct libseat *seat);
int (*close_seat)(struct libseat *seat); int (*close_seat)(struct libseat *seat);

View file

@ -44,7 +44,7 @@ struct backend_logind {
int has_drm; int has_drm;
}; };
const struct libseat_impl logind_impl; const struct seat_impl logind_impl;
static struct backend_logind *backend_logind_from_libseat_backend(struct libseat *base); static struct backend_logind *backend_logind_from_libseat_backend(struct libseat *base);
static void destroy(struct backend_logind *backend) { static void destroy(struct backend_logind *backend) {
@ -768,7 +768,7 @@ error:
return NULL; return NULL;
} }
const struct libseat_impl logind_impl = { const struct seat_impl logind_impl = {
.open_seat = logind_open_seat, .open_seat = logind_open_seat,
.disable_seat = disable_seat, .disable_seat = disable_seat,
.close_seat = close_seat, .close_seat = close_seat,

View file

@ -22,8 +22,8 @@
#include "server.h" #include "server.h"
#endif #endif
const struct libseat_impl seatd_impl; const struct seat_impl seatd_impl;
const struct libseat_impl builtin_impl; const struct seat_impl builtin_impl;
struct pending_event { struct pending_event {
struct linked_list link; // backend_seat::link struct linked_list link; // backend_seat::link
@ -495,7 +495,7 @@ static int disable_seat(struct libseat *base) {
return 0; return 0;
} }
const struct libseat_impl seatd_impl = { const struct seat_impl seatd_impl = {
.open_seat = open_seat, .open_seat = open_seat,
.disable_seat = disable_seat, .disable_seat = disable_seat,
.close_seat = close_seat, .close_seat = close_seat,
@ -569,7 +569,7 @@ static struct libseat *builtin_open_seat(struct libseat_seat_listener *listener,
} }
} }
const struct libseat_impl builtin_impl = { const struct seat_impl builtin_impl = {
.open_seat = builtin_open_seat, .open_seat = builtin_open_seat,
.disable_seat = disable_seat, .disable_seat = disable_seat,
.close_seat = close_seat, .close_seat = close_seat,

View file

@ -10,9 +10,9 @@
#include "libseat.h" #include "libseat.h"
#include "log.h" #include "log.h"
extern const struct libseat_impl seatd_impl; extern const struct seat_impl seatd_impl;
extern const struct libseat_impl logind_impl; extern const struct seat_impl logind_impl;
extern const struct libseat_impl builtin_impl; extern const struct seat_impl builtin_impl;
static const struct named_backend impls[] = { static const struct named_backend impls[] = {
#ifdef SEATD_ENABLED #ifdef SEATD_ENABLED