summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab.c
diff options
context:
space:
mode:
authorKarel Zak2013-08-20 12:32:19 +0200
committerKarel Zak2013-08-20 12:32:19 +0200
commite670df45c6d82fe5682b74cb4017d62eae653a2e (patch)
tree23dd50b2d7acaad55203eff536d514f11c86e396 /libmount/src/tab.c
parentpylibmount: cleanup *_HELP strings formatting (diff)
downloadkernel-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.c12
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
*