diff options
Diffstat (limited to 'seatd/client.c')
-rw-r--r-- | seatd/client.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/seatd/client.c b/seatd/client.c index 31a3fd5..fcb238d 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -66,6 +66,7 @@ struct client *client_create(struct server *server, int client_fd) { client->uid = uid; client->gid = gid; client->pid = pid; + client->session = -1; client->server = server; client->connection.fd = client_fd; linked_list_init(&client->devices); @@ -453,15 +454,3 @@ fail: client_destroy(client); return -1; } - -int client_get_session(const struct client *client) { - if (client->seat == NULL || client->seat->active_client != client) { - return -1; - } - if (client->seat->vt_bound) { - return client->seat_vt; - } - // TODO: Store some session sequence - errno = ENOSYS; - return -1; -} |