X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futmp-wtmp.h;h=a5998ebb21105f5c26bb893918c625f499bcc131;hp=abdf28a5f9efea1b3c25d7673b9a570be9e9b0ec;hb=dd338f01f545fd29777d7c1a53c7c658a409cda6;hpb=ef2f1067d0ca0e6d7346aa3e082048821b670b54 diff --git a/src/utmp-wtmp.h b/src/utmp-wtmp.h index abdf28a5f..a5998ebb2 100644 --- a/src/utmp-wtmp.h +++ b/src/utmp-wtmp.h @@ -1,4 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef fooutmpwtmphfoo #define fooutmpwtmphfoo @@ -26,10 +26,13 @@ int utmp_get_runlevel(int *runlevel, int *previous); -int utmp_put_shutdown(usec_t timestamp); +int utmp_put_shutdown(void); int utmp_put_reboot(usec_t timestamp); -int utmp_put_runlevel(usec_t timestamp, int runlevel, int previous); +int utmp_put_runlevel(int runlevel, int previous); -int utmp_wall(const char *message); +int utmp_put_dead_process(const char *id, pid_t pid, int code, int status); +int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line); + +int utmp_wall(const char *message, bool (*match_tty)(const char *tty)); #endif