Debian Codegraph @

src/shared/wall.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "shared-forward.h"
5
6 #if ENABLE_UTMP || ENABLE_LOGIND
7
8 int wall(
9 const char *message,
10 const char *username,
11 const char *origin_tty,
12 bool (*match_tty)(const char *tty, bool is_local, void *userdata),
13 void *userdata);
14
15 #else
16
17 static inline int wall(
18 const char *message,
19 const char *username,
20 const char *origin_tty,
21 bool (*match_tty)(const char *tty, bool is_local, void *userdata),
22 void *userdata) {
23
24 return 0;
25 }
26
27 #endif