summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/sysview.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-12-16 17:30:46 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-11 12:32:48 +0100
commitb2068772f5fd05173c4a42a907e42bb69160170c (patch)
treee71199609e655d5e498f92fab760bed6f509dcc0 /src/libsystemd-terminal/sysview.h
parent84c3561c58dd992b339afe5bb4c41971a2ebc486 (diff)
terminal/sysview: introduce SETTLE events
This introduces a new SYSVIEW_EVENT_SETTLE notification that is sent after initial scanning via sysview is done. This is very handy to let the application raise warnings in case requested resources are not found during startup. The SETTLE event is sent after systemd-logind and udev enumerations are done. This event does in no way guarantee that a given resource is available. All it does is notify the application that scanning is done! You must not react to SETTLE if you don't have external synchronization with the resource you're waiting for. The main use-case for SETTLE is to run applications _inside_ of logind sessions and startup sysview. You really want to make sure that the own session you're running in was found during enumeration. If not, something is seriously wrong.
Diffstat (limited to 'src/libsystemd-terminal/sysview.h')
-rw-r--r--src/libsystemd-terminal/sysview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/sysview.h b/src/libsystemd-terminal/sysview.h
index aa5527ff32..71e56e7ebf 100644
--- a/src/libsystemd-terminal/sysview.h
+++ b/src/libsystemd-terminal/sysview.h
@@ -51,6 +51,8 @@ typedef struct sysview_context sysview_context;
*/
enum {
+ SYSVIEW_EVENT_SETTLE,
+
SYSVIEW_EVENT_SEAT_ADD,
SYSVIEW_EVENT_SEAT_REMOVE,