summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/sysview.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 09:43:16 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 11:46:49 +0200
commit965f7a3f9bf7afb85be62198fabc70ffa033d8b1 (patch)
tree2dce26fa0db13f0aa9b4e9e046723a874431b7fb /src/libsystemd-terminal/sysview.h
parent3e7f6cf9565e007545112f245e69b2bf45866258 (diff)
terminal: forward DEVICE_CHANGE events via sysview
Whe need to react to "change" events on devices, but we want to avoid duplicating udev-monitors everywhere. Therefore, make sysview forward change events to the sysview controllers, which can then properly react to it.
Diffstat (limited to 'src/libsystemd-terminal/sysview.h')
-rw-r--r--src/libsystemd-terminal/sysview.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/sysview.h b/src/libsystemd-terminal/sysview.h
index de6ff371db..b9452fab89 100644
--- a/src/libsystemd-terminal/sysview.h
+++ b/src/libsystemd-terminal/sysview.h
@@ -64,6 +64,8 @@ enum {
SYSVIEW_EVENT_SESSION_ATTACH,
SYSVIEW_EVENT_SESSION_DETACH,
SYSVIEW_EVENT_SESSION_CONTROL,
+
+ SYSVIEW_EVENT_DEVICE_CHANGE,
};
struct sysview_event {
@@ -94,6 +96,11 @@ struct sysview_event {
sysview_session *session;
int error;
} session_control;
+
+ struct {
+ sysview_device *device;
+ struct udev_device *ud;
+ } device_change;
};
};