diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-09-22 17:37:21 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-22 18:14:44 +0200 |
commit | f2a15d86ccd0729e1442f40679cd393417e1e177 (patch) | |
tree | 6ebd5218d2df0cfaa2192ee81798ebd631c6621c /src/libsystemd-terminal/grdev.h | |
parent | 5d301b8aecc286d6ec7e92b0864d66360ea57205 (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/grdev.h')
-rw-r--r-- | src/libsystemd-terminal/grdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/grdev.h b/src/libsystemd-terminal/grdev.h index 9924a257b6..5f745aaad4 100644 --- a/src/libsystemd-terminal/grdev.h +++ b/src/libsystemd-terminal/grdev.h @@ -108,6 +108,11 @@ struct grdev_display_target { const grdev_fb *fb; }; +void grdev_display_set_userdata(grdev_display *display, void *userdata); +void *grdev_display_get_userdata(grdev_display *display); + +const char *grdev_display_get_name(grdev_display *display); + bool grdev_display_is_enabled(grdev_display *display); void grdev_display_enable(grdev_display *display); void grdev_display_disable(grdev_display *display); |