X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fsnapshot.h;h=56f87cff4d9f4657c53f8806a18a0f12c0455dc0;hp=9c63216421cbe0243660d9a33ae3cb93105e12aa;hb=abb26902e424c4142b68ead35676028b12249b77;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/src/core/snapshot.h b/src/core/snapshot.h index 9c6321642..56f87cff4 100644 --- a/src/core/snapshot.h +++ b/src/core/snapshot.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foosnapshothfoo -#define foosnapshothfoo +#pragma once /*** This file is part of systemd. @@ -47,7 +46,5 @@ extern const UnitVTable snapshot_vtable; int snapshot_create(Manager *m, const char *name, bool cleanup, DBusError *e, Snapshot **s); void snapshot_remove(Snapshot *s); -const char* snapshot_state_to_string(SnapshotState i); -SnapshotState snapshot_state_from_string(const char *s); - -#endif +const char* snapshot_state_to_string(SnapshotState i) _const_; +SnapshotState snapshot_state_from_string(const char *s) _pure_;