summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/sysview.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-22 17:37:21 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-22 18:14:44 +0200
commitf2a15d86ccd0729e1442f40679cd393417e1e177 (patch)
tree6ebd5218d2df0cfaa2192ee81798ebd631c6621c /src/libsystemd-terminal/sysview.h
parent5d301b8aecc286d6ec7e92b0864d66360ea57205 (diff)
terminal: allow user-context to be retrieved/stored
Add "userdata" storage to a bunch of external objects, namely displays and sessions. Furthermore, add some property retrieval helpers. This is required if we want external API users to not duplicate our own object hashtables, but retrieve context from the objects themselves.
Diffstat (limited to 'src/libsystemd-terminal/sysview.h')
-rw-r--r--src/libsystemd-terminal/sysview.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/sysview.h b/src/libsystemd-terminal/sysview.h
index 4d800f8d69..f691e492d5 100644
--- a/src/libsystemd-terminal/sysview.h
+++ b/src/libsystemd-terminal/sysview.h
@@ -116,6 +116,7 @@ enum {
SYSVIEW_DEVICE_CNT
};
+const char *sysview_device_get_name(sysview_device *device);
unsigned int sysview_device_get_type(sysview_device *device);
struct udev_device *sysview_device_get_ud(sysview_device *device);
@@ -123,6 +124,9 @@ struct udev_device *sysview_device_get_ud(sysview_device *device);
* Sessions
*/
+void sysview_session_set_userdata(sysview_session *session, void *userdata);
+void *sysview_session_get_userdata(sysview_session *session);
+
const char *sysview_session_get_name(sysview_session *session);
int sysview_session_take_control(sysview_session *session);