summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-27 22:44:12 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-27 22:44:12 +0200
commit4d6d6518c301c844be59c1b3a0d2092a3218572f (patch)
treecd41151f7bcecd6eaf1694c2146cb9cef2701952 /src/util.h
parentcd58752a158ccab3db77d355410b31b457df4cfc (diff)
logind: automatically deduce seat from display
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index ceabe92cf4..a26fb6f177 100644
--- a/src/util.h
+++ b/src/util.h
@@ -353,8 +353,8 @@ char* getlogname_malloc(void);
int getttyname_malloc(int fd, char **r);
int getttyname_harder(int fd, char **r);
-int get_ctty_devnr(dev_t *d);
-int get_ctty(char **r, dev_t *_devnr);
+int get_ctty_devnr(pid_t pid, dev_t *d);
+int get_ctty(pid_t, dev_t *_devnr, char **r);
int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);
@@ -442,6 +442,9 @@ int hwclock_set_time(const struct tm *tm);
int audit_session_from_pid(pid_t pid, uint32_t *id);
+bool display_is_local(const char *display);
+int socket_from_display(const char *display, char **path);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)