summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorOndrej Oprala2013-06-14 12:41:30 +0200
committerKarel Zak2013-07-03 10:17:37 +0200
commitcb90e24e804e2f95eadf01e96561749092c858c1 (patch)
treeddb6c8181d8aa749db571ca9f6a560f205ce169c /libmount/src/libmount.h.in
parentlibmount: add a generic append_string() function (diff)
downloadkernel-qcow2-util-linux-cb90e24e804e2f95eadf01e96561749092c858c1.tar.gz
kernel-qcow2-util-linux-cb90e24e804e2f95eadf01e96561749092c858c1.tar.xz
kernel-qcow2-util-linux-cb90e24e804e2f95eadf01e96561749092c858c1.zip
libmount: add functions to handle comments in fs tables
Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index db479e186..74d21c7c5 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -369,6 +369,10 @@ extern off_t mnt_fs_get_size(struct libmnt_fs *fs);
extern off_t mnt_fs_get_usedsize(struct libmnt_fs *fs);
extern int mnt_fs_get_priority(struct libmnt_fs *fs);
+extern const char *mnt_fs_get_comment(struct libmnt_fs *fs);
+extern int mnt_fs_set_comment(struct libmnt_fs *fs, const char *comm);
+extern int mnt_fs_append_comment(struct libmnt_fs *fs, const char *comm);
+
extern int mnt_fs_match_target(struct libmnt_fs *fs, const char *target,
struct libmnt_cache *cache);
extern int mnt_fs_match_source(struct libmnt_fs *fs, const char *source,
@@ -408,6 +412,15 @@ extern void mnt_free_table(struct libmnt_table *tb);
extern int mnt_reset_table(struct libmnt_table *tb);
extern int mnt_table_get_nents(struct libmnt_table *tb);
+
+extern void mnt_table_enable_comments(struct libmnt_table *tb, int enable);
+extern const char *mnt_table_get_intro_comment(struct libmnt_table *tb);
+extern int mnt_table_set_intro_comment(struct libmnt_table *tb, const char *comm);
+extern int mnt_table_append_intro_comment(struct libmnt_table *tb, const char *comm);
+extern int mnt_table_set_tailing_comment(struct libmnt_table *tb, const char *comm);
+extern const char *mnt_table_get_tailing_comment(struct libmnt_table *tb);
+extern int mnt_table_append_tailing_comment(struct libmnt_table *tb, const char *comm);
+
extern int mnt_table_set_cache(struct libmnt_table *tb, struct libmnt_cache *mpc);
extern struct libmnt_cache *mnt_table_get_cache(struct libmnt_table *tb);
extern int mnt_table_add_fs(struct libmnt_table *tb, struct libmnt_fs *fs);