diff options
Diffstat (limited to 'unpack/rdsquashfs.h')
-rw-r--r-- | unpack/rdsquashfs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index 959960a..9d1ab4f 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -26,6 +26,23 @@ enum UNPACK_FLAGS { UNPACK_QUIET = 0x04, }; +enum { + OP_NONE = 0, + OP_LS, + OP_CAT, + OP_UNPACK, + OP_DESCRIBE, +}; + +typedef struct { + int op; + int rdtree_flags; + int flags; + char *cmdpath; + const char *unpack_root; + const char *image_name; +} options_t; + void list_files(tree_node_t *node); int restore_fstree(const char *rootdir, tree_node_t *root, @@ -33,4 +50,6 @@ int restore_fstree(const char *rootdir, tree_node_t *root, void describe_tree(tree_node_t *root, const char *unpack_root); +void process_command_line(options_t *opt, int argc, char **argv); + #endif /* RDSQUASHFS_H */ |