diff options
author | Karel Zak | 2013-08-20 12:32:19 +0200 |
---|---|---|
committer | Karel Zak | 2013-08-20 12:32:19 +0200 |
commit | e670df45c6d82fe5682b74cb4017d62eae653a2e (patch) | |
tree | 23dd50b2d7acaad55203eff536d514f11c86e396 /libmount/src/tab.c | |
parent | pylibmount: cleanup *_HELP strings formatting (diff) | |
download | kernel-qcow2-util-linux-e670df45c6d82fe5682b74cb4017d62eae653a2e.tar.gz kernel-qcow2-util-linux-e670df45c6d82fe5682b74cb4017d62eae653a2e.tar.xz kernel-qcow2-util-linux-e670df45c6d82fe5682b74cb4017d62eae653a2e.zip |
libmount: add mnt_table_with_comments()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab.c')
-rw-r--r-- | libmount/src/tab.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 9356c7529..c79b9819c 100644 --- a/libmount/src/tab.c +++ b/libmount/src/tab.c @@ -162,6 +162,18 @@ void mnt_table_enable_comments(struct libmnt_table *tb, int enable) } /** + * mnt_table_with_comments: + * @tb: pointer to table + * + * Returns: 1 if comments parsing is enabled, or 0. + */ +int mnt_table_with_comments(struct libmnt_table *tb) +{ + assert(tb); + return tb ? tb->comms : 0; +} + +/** * mnt_table_get_intro_comment: * @tb: pointer to tab * |