diff options
author | Freya Murphy <freya@freyacat.org> | 2023-12-15 23:02:45 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2023-12-15 23:02:45 -0500 |
commit | 42d1c82a0bfa615b832f5ecc2652edc290bf6e9c (patch) | |
tree | 09223f3ca9b54fc3cd5a7cb45180542cc3a8a1ba /src/flags.h | |
parent | fix printing arrays (diff) | |
download | nbtvis-42d1c82a0bfa615b832f5ecc2652edc290bf6e9c.tar.gz nbtvis-42d1c82a0bfa615b832f5ecc2652edc290bf6e9c.tar.bz2 nbtvis-42d1c82a0bfa615b832f5ecc2652edc290bf6e9c.zip |
add json support and other things
Diffstat (limited to 'src/flags.h')
-rw-r--r-- | src/flags.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/flags.h b/src/flags.h new file mode 100644 index 0000000..a14580b --- /dev/null +++ b/src/flags.h @@ -0,0 +1,17 @@ +#pragma once + +#include "tag.h" +#include "stream.h" + +typedef struct { + stream_t in; + stream_t out; + format_t fin; + format_t fout; + bool help; + bool version; + bool __set_fin; + bool __set_fout; +} flags_t; + +void parse_flags(flags_t *flags, int argc, char **argv); |