overlay: create a common function for deleting all overlay data (optionally excluding...
[project/fstools.git] / libfstools / libfstools.h
index b03e432..1d41eea 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <libubox/list.h>
 #include <libubox/blob.h>
+#include <libubox/ulog.h>
 
 struct volume;
 
@@ -47,4 +48,6 @@ extern int jffs2_switch(struct volume *v);
 extern int handle_whiteout(const char *dir);
 extern void foreachdir(const char *dir, int (*cb)(const char*));
 
+extern void overlay_delete(const char *dir, bool keep_sysupgrade);
+
 #endif