blob: 00a124dc9fbdcbc80ffbcf3724383fcc1e368122 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <stdbool.h>
#include <unistd.h>
bool session_id_valid(const char *id);
static inline bool logind_running(void) {
return access("/run/systemd/seats/", F_OK) >= 0;
}
|