diff options
author | Karel Zak | 2013-11-22 13:31:15 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:12 +0100 |
commit | 575a1de03a38bdcc9c9697041633732ea34f1021 (patch) | |
tree | 55a5b532e49a3f19cd9efc2f6f4defa773f6067e /include/tt.h | |
parent | lib/tt: don't hardcode stdout as output (diff) | |
download | kernel-qcow2-util-linux-575a1de03a38bdcc9c9697041633732ea34f1021.tar.gz kernel-qcow2-util-linux-575a1de03a38bdcc9c9697041633732ea34f1021.tar.xz kernel-qcow2-util-linux-575a1de03a38bdcc9c9697041633732ea34f1021.zip |
lib/tt: add tb_get_nlines()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/tt.h')
-rw-r--r-- | include/tt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tt.h b/include/tt.h index 11bd81e4b..ce76524ac 100644 --- a/include/tt.h +++ b/include/tt.h @@ -95,6 +95,8 @@ extern int tt_line_set_userdata(struct tt_line *ln, void *data); extern void tt_fputs_quoted(const char *data, FILE *out); extern void tt_fputs_nonblank(const char *data, FILE *out); +extern size_t tb_get_nlines(struct tt *tb); + static inline int tt_is_empty(struct tt *tb) { return !tb || list_empty(&tb->tb_lines); |