]> git.sesse.net Git - nageru/blobdiff - futatabi/flags.h
Move everything into a separate futatabi/ subdir, for the upcoming merge with Nageru.
[nageru] / futatabi / flags.h
diff --git a/futatabi/flags.h b/futatabi/flags.h
new file mode 100644 (file)
index 0000000..5e9d34b
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef _FLAGS_H
+#define _FLAGS_H
+
+#include <string>
+
+#include "defs.h"
+
+struct Flags {
+       std::string stream_source;
+       std::string working_directory = ".";
+       bool slow_down_input = false;
+       int interpolation_quality = 2;
+       uint16_t http_port = DEFAULT_HTTPD_PORT;
+};
+extern Flags global_flags;
+
+void usage();
+void parse_flags(int argc, char * const argv[]);
+
+#endif  // !defined(_FLAGS_H)