blob: 0a4342638d50e8183d5980b92a0ca5c7e40f97f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef PLAYER_H
#define PLAYER_H
typedef struct PlayerArgs PlayerArgs;
struct PlayerArgs {
b32 sync; // --sync: download everything (or --sync=<qari id>) and exit
u32 sync_qari_id;
u32 jobs; // --jobs=<n> 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=<qari id>:<surah>: start playing right away
u32 play_surah;
u32 play_list[SURAH_COUNT]; // --play=<qari>: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=<file.ppm>: capture a frame and quit (debug)
char open_view[32]; // --open=<view>: 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
|