diff options
Diffstat (limited to 'src/libsystemd-terminal/sysview.c')
-rw-r--r-- | src/libsystemd-terminal/sysview.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/sysview.c b/src/libsystemd-terminal/sysview.c index 5b623c1e6c..208c6ce25c 100644 --- a/src/libsystemd-terminal/sysview.c +++ b/src/libsystemd-terminal/sysview.c @@ -104,6 +104,12 @@ sysview_device *sysview_device_free(sysview_device *device) { return NULL; } +const char *sysview_device_get_name(sysview_device *device) { + assert_return(device, NULL); + + return device->name; +} + unsigned int sysview_device_get_type(sysview_device *device) { assert_return(device, (unsigned)-1); @@ -243,6 +249,18 @@ sysview_session *sysview_session_free(sysview_session *session) { return NULL; } +void sysview_session_set_userdata(sysview_session *session, void *userdata) { + assert(session); + + session->userdata = userdata; +} + +void *sysview_session_get_userdata(sysview_session *session) { + assert_return(session, NULL); + + return session->userdata; +} + const char *sysview_session_get_name(sysview_session *session) { assert_return(session, NULL); |