chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v231: Add missing line breaks in loginctl help text
[elogind.git]
/
src
/
login
/
logind-button.h
diff --git
a/src/login/logind-button.h
b/src/login/logind-button.h
index 1c5a84553d21ca7dc6322fdec083b255cbb45a85..f30cba29594d712e59de1c5ba1d70b2a743d73b4 100644
(file)
--- 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.
/***
This file is part of systemd.
@@
-24,25
+21,24
@@
typedef struct Button Button;
typedef struct Button Button;
-#include "list.h"
-#include "util.h"
#include "logind.h"
struct Button {
Manager *manager;
#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;
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);
};
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);
int button_set_seat(Button *b, const char *sn);
-
-#endif
+int button_check_switches(Button *b);