X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-button.h;h=f30cba29594d712e59de1c5ba1d70b2a743d73b4;hp=1c5a84553d21ca7dc6322fdec083b255cbb45a85;hb=1a9645229d25059a5b0643824f1ca2b290b26e0f;hpb=23406ce58aa7142e8df3c5c9e5ac34a01e90e3e0 diff --git a/src/login/logind-button.h b/src/login/logind-button.h index 1c5a84553..f30cba295 100644 --- a/src/login/logind-button.h +++ b/src/login/logind-button.h @@ -1,7 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - -#ifndef foologindbuttonhfoo -#define foologindbuttonhfoo +#pragma once /*** This file is part of systemd. @@ -24,25 +21,24 @@ typedef struct Button Button; -#include "list.h" -#include "util.h" #include "logind.h" struct Button { Manager *manager; + sd_event_source *io_event_source; + sd_event_source *check_event_source; + char *name; char *seat; int fd; - bool lid_close_queued; + bool lid_closed; + bool docked; }; Button* button_new(Manager *m, const char *name); void button_free(Button*b); int button_open(Button *b); -int button_process(Button *b); -int button_recheck(Button *b); int button_set_seat(Button *b, const char *sn); - -#endif +int button_check_switches(Button *b);