X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fdevice.h;h=bb7ae0783499cfcb60ce8e908c279acfeef2773d;hp=fa806575c9a6dd1e06a22d28aab222af4ce6cd14;hb=adeba5008eac3105ae59256dedd087ebe006a9e6;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/src/core/device.h b/src/core/device.h index fa806575c..bb7ae0783 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -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. @@ -51,9 +50,5 @@ struct Device { 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_;