#ifndef PLAYER_H #define PLAYER_H typedef struct PlayerArgs PlayerArgs; struct PlayerArgs { b32 sync; // --sync: download everything (or --sync=) and exit u32 sync_qari_id; u32 jobs; // --jobs= download workers b32 refresh; // --refresh: re-fetch the catalog b32 layer; // --layer: wlr layer shell overlay instead of a normal window b32 headless; // --headless: no window, needs --play (tests the audio path) u32 play_qari_id; // --play=:: start playing right away u32 play_surah; u32 play_list[SURAH_COUNT]; // --play=:3,5,6,7,8 plays these as a queue u32 play_count; char anchor[16]; // --anchor=center|top|bottom|left|right|top-left|... char screenshot[512]; // --screenshot=: capture a frame and quit (debug) char open_view[32]; // --open=: focus (or open) that view at startup char *sets[32]; // --set="name=value", any setting u32 set_count; }; internal String8 player_data_dir(Arena *arena); internal void player_parse_args(PlayerArgs *args, int argc, char **argv); #endif // PLAYER_H