aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/backend.h8
-rw-r--r--libseat/backend/logind.c4
-rw-r--r--libseat/backend/seatd.c8
-rw-r--r--libseat/libseat.c6
4 files changed, 13 insertions, 13 deletions
diff --git a/include/backend.h b/include/backend.h
index e310a49..075f48c 100644
--- a/include/backend.h
+++ b/include/backend.h
@@ -3,19 +3,19 @@
#include "libseat.h"
-struct libseat_impl;
+struct seat_impl;
struct libseat_seat_listener;
struct libseat {
- const struct libseat_impl *impl;
+ const struct seat_impl *impl;
};
struct named_backend {
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);
int (*disable_seat)(struct libseat *seat);
int (*close_seat)(struct libseat *seat);
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c
index 492d319..7224508 100644
--- a/libseat/backend/logind.c
+++ b/libseat/backend/logind.c
@@ -44,7 +44,7 @@ struct backend_logind {
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 void destroy(struct backend_logind *backend) {
@@ -768,7 +768,7 @@ error:
return NULL;
}
-const struct libseat_impl logind_impl = {
+const struct seat_impl logind_impl = {
.open_seat = logind_open_seat,
.disable_seat = disable_seat,
.close_seat = close_seat,
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c
index a81898c..7b0b411 100644
--- a/libseat/backend/seatd.c
+++ b/libseat/backend/seatd.c
@@ -22,8 +22,8 @@
#include "server.h"
#endif
-const struct libseat_impl seatd_impl;
-const struct libseat_impl builtin_impl;
+const struct seat_impl seatd_impl;
+const struct seat_impl builtin_impl;
struct pending_event {
struct linked_list link; // backend_seat::link
@@ -495,7 +495,7 @@ static int disable_seat(struct libseat *base) {
return 0;
}
-const struct libseat_impl seatd_impl = {
+const struct seat_impl seatd_impl = {
.open_seat = open_seat,
.disable_seat = disable_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,
.disable_seat = disable_seat,
.close_seat = close_seat,
diff --git a/libseat/libseat.c b/libseat/libseat.c
index 3489385..121a3b0 100644
--- a/libseat/libseat.c
+++ b/libseat/libseat.c
@@ -10,9 +10,9 @@
#include "libseat.h"
#include "log.h"
-extern const struct libseat_impl seatd_impl;
-extern const struct libseat_impl logind_impl;
-extern const struct libseat_impl builtin_impl;
+extern const struct seat_impl seatd_impl;
+extern const struct seat_impl logind_impl;
+extern const struct seat_impl builtin_impl;
static const struct named_backend impls[] = {
#ifdef SEATD_ENABLED