chiark / gitweb /
ed454bd67f1ba5b3d45bef9086e2e3f315a59380
[elogind.git] / src / basic / login-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   This file is part of systemd.
6
7   Copyright 2013 Zbigniew JÄ™drzejewski-Szmek
8 ***/
9
10 #include <stdbool.h>
11 #include <unistd.h>
12
13 bool session_id_valid(const char *id);
14
15 static inline bool logind_running(void) {
16         return access("/run/systemd/seats/", F_OK) >= 0;
17 }