summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2014-02-04 23:34:54 +0100
committerKarel Zak2014-03-11 11:35:14 +0100
commit9a66e1e76fbde53ecf0e7684e5a942d96f4c9780 (patch)
treed0604666cdc168d1eafdff98b0814b5fc535fd36 /lib
parentlibfdisk: add dump functions, make freespace code generic (diff)
downloadkernel-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')
-rw-r--r--lib/tt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tt.c b/lib/tt.c
index 47555024e..6b630f8e7 100644
--- a/lib/tt.c
+++ b/lib/tt.c
@@ -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;