diff options
author | Karel Zak | 2014-02-04 23:34:54 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:14 +0100 |
commit | 9a66e1e76fbde53ecf0e7684e5a942d96f4c9780 (patch) | |
tree | d0604666cdc168d1eafdff98b0814b5fc535fd36 /lib/tt.c | |
parent | libfdisk: add dump functions, make freespace code generic (diff) | |
download | kernel-qcow2-util-linux-9a66e1e76fbde53ecf0e7684e5a942d96f4c9780.tar.gz kernel-qcow2-util-linux-9a66e1e76fbde53ecf0e7684e5a942d96f4c9780.tar.xz kernel-qcow2-util-linux-9a66e1e76fbde53ecf0e7684e5a942d96f4c9780.zip |
lib/tt: add tt_line_get_userdata()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/tt.c')
-rw-r--r-- | lib/tt.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -310,6 +310,11 @@ int tt_line_set_userdata(struct tt_line *ln, void *data) return 0; } +void *tt_line_get_userdata(struct tt_line *ln) +{ + return ln ? ln->userdata : NULL; +} + static char *line_get_ascii_art(struct tt_line *ln, char *buf, size_t *bufsz) { const char *art; |