diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-11 18:08:02 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-11 18:08:02 +0200 |
commit | 8fa122a59f61878bafa43ea45d9ea988f3a70998 (patch) | |
tree | 68cecde13ae0cef26fa1289c236d7251c7d092a0 /unpack/rdsquashfs.h | |
parent | cfbbe12db970b266186775350267f163967d2ede (diff) |
cleanup: rdsquashfs: move command line option processing to options.c
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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 */ |