summaryrefslogtreecommitdiffstats
path: root/include/file-list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/file-list.h')
-rw-r--r--include/file-list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/file-list.h b/include/file-list.h
index 5090313739..79190b0f19 100644
--- a/include/file-list.h
+++ b/include/file-list.h
@@ -4,10 +4,13 @@
#include <linux/list.h>
+struct cdev;
+
#define FILE_LIST_FLAG_SAFE (1 << 0)
#define FILE_LIST_FLAG_READBACK (1 << 1)
#define FILE_LIST_FLAG_CREATE (1 << 2)
#define FILE_LIST_FLAG_UBI (1 << 3)
+#define FILE_LIST_FLAG_OPTIONAL (1 << 4)
struct file_list_entry {
char *name;
@@ -29,6 +32,10 @@ void file_list_free(struct file_list *);
int file_list_add_entry(struct file_list *files, const char *name, const char *filename,
unsigned long flags);
+int file_list_add_cdev_entry(struct file_list *files, struct cdev *cdev,
+ unsigned long flags);
+
+struct file_list *file_list_new(void);
struct file_list *file_list_dup(struct file_list *old);
int file_list_detect_all(const struct file_list *files);