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=cb2526d7003f48e79d471758ea0ad66104340870;hp=df080d98ed17ceb28bb6031000bbb85ec279b67d;hb=48a439f2dac67302f3e7d1ccb21bd93e919efd02;hpb=e8e581bf256b8c0fbd430935af79fa0e8ee570a1 diff --git a/src/login/logind-action.h b/src/login/logind-action.h index df080d98e..cb2526d70 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. @@ -36,8 +35,8 @@ typedef enum HandleAction { _HANDLE_ACTION_INVALID = -1 } HandleAction; -#include "logind.h" #include "logind-inhibit.h" +#include "logind.h" int manager_handle_action( Manager *m, @@ -46,9 +45,9 @@ 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); +int shutdown_or_sleep(Manager *m, HandleAction action); -int config_parse_handle_action(const char *unit, const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); +const char* handle_action_to_string(HandleAction h) _const_; +HandleAction handle_action_from_string(const char *s) _pure_; -#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);