X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshutdownd.h;h=4581649733dd50395f1cc7dee0866879cd68441b;hp=d298b01c92a262649740b0df9d6494cb3b77cb3b;hb=d7832d2c6e0ef5f2839a2296c1cc2fc85c7d9632;hpb=f61448083198dc0e4e0d19a916bcd478336cc85d diff --git a/src/shutdownd.h b/src/shutdownd.h index d298b01c9..458164973 100644 --- a/src/shutdownd.h +++ b/src/shutdownd.h @@ -25,11 +25,22 @@ #include "util.h" #include "macro.h" +/* This is a private message, we don't care much about ABI + * stability. */ + _packed_ struct shutdownd_command { usec_t elapse; char mode; /* H, P, r, i.e. the switches usually passed to * shutdown to select whether to halt, power-off or * reboot the machine */ + bool dry_run; + bool warn_wall; + + /* Yepp, sometimes we are lazy and use fixed-size strings like + * this one. Shame on us. But then again, we'd have to + * pre-allocate the receive buffer anyway, so there's nothing + * too bad here. */ + char wall_message[4096]; }; #endif