chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus-proxyd: use a loop instead of c&p
[elogind.git]
/
src
/
systemd
/
sd-shutdown.h
diff --git
a/src/systemd/sd-shutdown.h
b/src/systemd/sd-shutdown.h
index b8f6a487ecdb391a8a5d7318e3cd6433b311d2e2..1d65549882cfe743848cef0b13e3e2b5bc0fa7ef 100644
(file)
--- a/
src/systemd/sd-shutdown.h
+++ b/
src/systemd/sd-shutdown.h
@@
-26,6
+26,14
@@
#include <inttypes.h>
#include <inttypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _sd_packed_
+# define _sd_packed_ __attribute__((packed))
+#endif
+
typedef enum sd_shutdown_mode {
SD_SHUTDOWN_NONE = 0,
SD_SHUTDOWN_REBOOT = 'r',
typedef enum sd_shutdown_mode {
SD_SHUTDOWN_NONE = 0,
SD_SHUTDOWN_REBOOT = 'r',
@@
-55,7
+63,7
@@
struct sd_shutdown_command {
/* The wall message to send around. Leave empty for the
* default wall message */
char wall_message[];
/* The wall message to send around. Leave empty for the
* default wall message */
char wall_message[];
-} _
_attribute__((packed))
;
+} _
sd_packed_
;
/* The scheme is very simple:
*
/* The scheme is very simple:
*
@@
-105,4
+113,8
@@
struct sd_shutdown_command {
* anybody.
*/
* anybody.
*/
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif