diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-02 17:22:24 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-02 17:22:24 +0200 |
commit | 9940efe053263478c5f29367b11d6f7ed1276aa4 (patch) | |
tree | 99d1c9e9712c73ba4e6e8e145f007cb74294f12a /include/common.h | |
parent | 32eb57dd9a19254565a0792ab9b627a3dac319f9 (diff) |
Move fstree CLI code to libcommon
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 84ec3ca..30c30fe 100644 --- a/include/common.h +++ b/include/common.h @@ -69,4 +69,11 @@ ostream_t *data_writer_ostream_create(const char *filename, sqfs_inode_generic_t **inode, int flags); +/* + Parse a comma separated list (e.g. "uid=...,gid=..." of defaults for + fstree nodes. Used for command line parsing. Returns 0 on success, + -1 on failure. Prints an error message to stderr on failure. + */ +int parse_fstree_defaults(fstree_defaults_t *out, char *str); + #endif /* COMMON_H */ |