libfstools: add "const" to char pointer arguments in mount_move()
[project/fstools.git] / libfstools / libfstools.h
index 31d9f9e..f27307a 100644 (file)
@@ -17,6 +17,7 @@
 #include <libubox/list.h>
 #include <libubox/blob.h>
 #include <libubox/ulog.h>
+#include <libubox/utils.h>
 
 struct volume;
 
@@ -26,6 +27,8 @@ enum {
        FS_JFFS2,
        FS_DEADCODE,
        FS_UBIFS,
+       FS_F2FS,
+       FS_EXT4,
 };
 
 enum fs_state {
@@ -40,14 +43,14 @@ extern int mount_extroot(void);
 extern int mount_snapshot(struct volume *v);
 extern int mount_overlay(struct volume *v);
 
-extern int mount_move(char *oldroot, char *newroot, char *dir);
+extern int mount_move(const char *oldroot, const char *newroot, const char *dir);
 extern int pivot(char *new, char *old);
 extern int fopivot(char *rw_root, char *ro_root);
 extern int ramoverlay(void);
 
 extern int find_overlay_mount(char *overlay);
 extern char* find_mount(char *mp);
-extern char* find_mount_point(char *block, int mtd_only);
+extern char* find_mount_point(char *block, int root_only);
 extern int find_filesystem(char *fs);
 
 extern int jffs2_switch(struct volume *v);