summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/idev-internal.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-22 17:34:13 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-22 18:14:44 +0200
commit5d301b8aecc286d6ec7e92b0864d66360ea57205 (patch)
tree431ad4f13aec720990eb97247b45679162682e53 /src/libsystemd-terminal/idev-internal.h
parentffb6c43e7985e837ae50f8831b98c9941c406969 (diff)
terminal: make evdev logind-matches per session
Instead of adding matches per device, we now add logind matches per session. This reduces the number of matches considerably and saves resources.
Diffstat (limited to 'src/libsystemd-terminal/idev-internal.h')
-rw-r--r--src/libsystemd-terminal/idev-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/idev-internal.h b/src/libsystemd-terminal/idev-internal.h
index c416f4fadd..a159aef211 100644
--- a/src/libsystemd-terminal/idev-internal.h
+++ b/src/libsystemd-terminal/idev-internal.h
@@ -116,6 +116,8 @@ struct idev_element_vtable {
void (*disable) (idev_element *e);
void (*open) (idev_element *e);
void (*close) (idev_element *e);
+ void (*resume) (idev_element *e, int fd);
+ void (*pause) (idev_element *e, const char *mode);
void (*feedback) (idev_element *e, idev_data *data);
};
@@ -155,6 +157,8 @@ struct idev_session {
idev_context *context;
char *name;
char *path;
+ sd_bus_slot *slot_resume_device;
+ sd_bus_slot *slot_pause_device;
Hashmap *element_map;
Hashmap *device_map;