#ifndef APP_H #define APP_H typedef struct AppArgs AppArgs; struct AppArgs { b32 layer; // --layer: wlr layer shell overlay char anchor[16]; // --anchor=center|top|bottom-right|... char screenshot[512]; // --screenshot=: capture a frame and quit char open_view[32]; // --open=: focus or open a view at startup char open_file[512]; // positional .dit / .dit.txt file char template_name[32];// --template= char scan_path[512]; // --scan=: build diagram from C/C++ headers char export_svg[512]; // --export-svg=: export SVG and quit char export_any[512]; // --export=: .svg .png .mmd .puml .dit.txt .dit by extension, then quit char export_arg[32]; // --export-style= (mermaid), (png) char *sets[32]; // --set="name=value" u32 set_count; }; internal String8 app_data_dir(Arena *arena); internal void app_parse_args(AppArgs *args, int argc, char **argv); #endif // APP_H