chiark / gitweb /
Fix possible lack of status messages on shutdown/reboot
[elogind.git] / src / core / device.h
index fa806575c9a6dd1e06a22d28aab222af4ce6cd14..41e8de970366c49566b7925d57025e8269fff9c1 100644 (file)
@@ -1,7 +1,6 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foodevicehfoo
-#define foodevicehfoo
+#pragma once
 
 /***
   This file is part of systemd.
@@ -53,7 +52,5 @@ extern const UnitVTable device_vtable;
 
 void device_fd_event(Manager *m, int events);
 
-const char* device_state_to_string(DeviceState i);
-DeviceState device_state_from_string(const char *s);
-
-#endif
+const char* device_state_to_string(DeviceState i) _const_;
+DeviceState device_state_from_string(const char *s) _pure_;