]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: add missing declarations to libmount.h.in and documentation
authorOndrej Oprala <ooprala@redhat.com>
Tue, 30 Jul 2013 12:25:31 +0000 (14:25 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Aug 2013 09:23:02 +0000 (11:23 +0200)
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
libmount/docs/libmount-sections.txt
libmount/src/fs.c
libmount/src/libmount.h.in
libmount/src/tab.c

index 2c3dab72259e152850bdb17d4c119c2e7ea923d3..a5ef05f856caa75f75d4b6eee2527514de1f7cf3 100644 (file)
@@ -168,10 +168,12 @@ mnt_copy_fs
 mnt_free_fs
 mnt_free_mntent
 mnt_fs_append_attributes
+mnt_fs_append_comment
 mnt_fs_append_options
 mnt_fs_get_attribute
 mnt_fs_get_attributes
 mnt_fs_get_bindsrc
+mnt_fs_get_comment
 mnt_fs_get_devno
 mnt_fs_get_freq
 mnt_fs_get_fs_options
@@ -209,6 +211,7 @@ mnt_fs_prepend_options
 mnt_fs_print_debug
 mnt_fs_set_attributes
 mnt_fs_set_bindsrc
+mnt_fs_set_comment
 mnt_fs_set_freq
 mnt_fs_set_fstype
 mnt_fs_set_options
@@ -282,6 +285,9 @@ mnt_reset_table
 mnt_new_table_from_dir
 mnt_new_table_from_file
 mnt_table_add_fs
+mnt_table_append_intro_comment
+mnt_table_append_trailing_comment
+mnt_table_enable_comments
 mnt_table_find_devno
 mnt_table_find_mountpoint
 mnt_table_find_next_fs
@@ -291,8 +297,10 @@ mnt_table_find_srcpath
 mnt_table_find_tag
 mnt_table_find_target
 mnt_table_get_cache
+mnt_table_get_intro_comment
 mnt_table_get_nents
 mnt_table_get_root_fs
+mnt_table_get_trailing_comment
 mnt_table_is_fs_mounted
 mnt_table_next_child_fs
 mnt_table_next_fs
@@ -304,8 +312,10 @@ mnt_table_parse_stream
 mnt_table_parse_swaps
 mnt_table_remove_fs
 mnt_table_set_cache
+mnt_table_set_intro_comment
 mnt_table_set_iter
 mnt_table_set_parser_errcb
+mnt_table_set_trailing_comment
 </SECTION>
 
 <SECTION>
@@ -322,6 +332,8 @@ mnt_diff_tables
 libmnt_update
 mnt_free_update
 mnt_new_update
+mnt_table_replace_file
+mnt_table_write_file
 mnt_update_force_rdonly
 mnt_update_get_filename
 mnt_update_get_fs
index b6b3d12b83f7546c4a6737b4ddc900ac3a980eb9..fc2eee7aa94f5474676428d51b5edb1d313becbb 100644 (file)
@@ -1327,6 +1327,7 @@ int mnt_fs_set_comment(struct libmnt_fs *fs, const char *comm)
 /**
  * mnt_fs_append_comment:
  * @fs: fstab entry pointer
+ * @comm: comment string
  *
  * See also mnt_fs_set_comment().
  *
index 9f904ca5890a0b3b6335807c28275f1529d382e2..5eb7c48b85237f76f051ad4fab6a9ebd226e55ea 100644 (file)
@@ -462,6 +462,9 @@ extern struct libmnt_update *mnt_new_update(void)
                        __ul_attribute__((warn_unused_result));
 extern void mnt_free_update(struct libmnt_update *upd);
 
+extern int mnt_table_replace_file(struct libmnt_table *tb, const char *filename);
+extern int mnt_table_write_file(struct libmnt_table *tb, FILE *file);
+
 extern int mnt_update_is_ready(struct libmnt_update *upd);
 extern int mnt_update_set_fs(struct libmnt_update *upd, unsigned long mountflags,
                              const char *target, struct libmnt_fs *fs);
index 653c15d3dbc78b6fb8591c4548c2a01d8e6a2e76..ac4d4a3d3893d05bfdc8d788be8006cacaa29f5d 100644 (file)
@@ -130,6 +130,7 @@ int mnt_table_get_nents(struct libmnt_table *tb)
 /**
  * mnt_table_enable_comments:
  * @tb: pointer to tab
+ * @enable: TRUE or FALSE
  *
  * Enables parsing of comments.
  *
@@ -230,6 +231,7 @@ const char *mnt_table_get_trailing_comment(struct libmnt_table *tb)
 /**
  * mnt_table_set_trailing_comment
  * @tb: pointer to tab
+ * @comm: comment string
  *
  * Sets tailing comment in table.
  *