summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab.c
diff options
context:
space:
mode:
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
*