X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-button.h;h=72a612e9148acedf6d71607dd1756074333c4ab5;hb=2d62c530d2b4c2730abff715b7342f1402114513;hp=83bf1fc70cb3503b18ab55ed5bb599b6c289c94b;hpb=cc3773810855956bad92337cee8fa193584ab62e;p=elogind.git diff --git a/src/login/logind-button.h b/src/login/logind-button.h index 83bf1fc70..72a612e91 100644 --- a/src/login/logind-button.h +++ b/src/login/logind-button.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindbuttonhfoo -#define foologindbuttonhfoo +#pragma once /*** This file is part of systemd. @@ -31,19 +30,19 @@ typedef struct Button Button; struct Button { Manager *manager; - sd_event_source *event_source; + 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_recheck(Button *b); int button_set_seat(Button *b, const char *sn); - -#endif +int button_check_switches(Button *b);