chiark / gitweb /
terminal: add system view interface
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 26 Aug 2014 13:03:41 +0000 (15:03 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 27 Aug 2014 16:42:28 +0000 (18:42 +0200)
commit7ed3a638b2e4ffb5e76a0cf1a008e1c7233edb75
tree8c6842d7117fa38669ff385272d7d0fcfcdbe554
parentaae2b488d084cf2af9a552a55e1d9cc614f2a12a
terminal: add system view interface

We're going to need multiple binaries that provide session-services via
logind device management. To avoid re-writing the seat/session/device
scan/monitor interface for each of them, this commit adds a generic helper
to libsystemd-terminal:

The sysview interface scans and tracks seats, sessions and devices on a
system. It basically mirrors the state of logind on the application side.
Now, each session-service can listen for matching sessions and
attach to them. On each session, managed device access is provided. This
way, it is pretty simple to write session-services that attach to multiple
sessions (even split across seats).
Makefile.am
src/libsystemd-terminal/sysview-internal.h [new file with mode: 0644]
src/libsystemd-terminal/sysview.c [new file with mode: 0644]
src/libsystemd-terminal/sysview.h [new file with mode: 0644]