X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-action.h;h=ff98065371c5c996caf199eb19d67ade4cb72561;hp=7ab44644f25acaa379de27139b15fc6b7f282c0b;hb=2a7a7d0b0f645b14cf0388b40d747b0ccb0c091e;hpb=f274ece0f76b5709408821e317e87aef76123db6;ds=sidebyside diff --git a/src/login/logind-action.h b/src/login/logind-action.h index 7ab44644f..ff9806537 100644 --- a/src/login/logind-action.h +++ b/src/login/logind-action.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindactionhfoo -#define foologindactionhfoo +#pragma once /*** This file is part of systemd. @@ -37,7 +36,6 @@ typedef enum HandleAction { } HandleAction; #include "logind.h" -#include "logind-inhibit.h" int manager_handle_action( Manager *m, @@ -46,9 +44,7 @@ int manager_handle_action( bool ignore_inhibited, bool is_edge); -const char* handle_action_to_string(HandleAction h); -HandleAction handle_action_from_string(const char *s); +const char* handle_action_to_string(HandleAction h) _const_; +HandleAction handle_action_from_string(const char *s) _pure_; -int config_parse_handle_action(const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); - -#endif +int config_parse_handle_action(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);