diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/media/media.h | |
Add the files
Diffstat (limited to 'src/detection/media/media.h')
| -rw-r--r-- | src/detection/media/media.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/detection/media/media.h b/src/detection/media/media.h new file mode 100644 index 0000000..ea241e6 --- /dev/null +++ b/src/detection/media/media.h @@ -0,0 +1,21 @@ +#pragma once + +#include "fastfetch.h" +#include "modules/media/option.h" + +typedef struct FFMediaResult { + FFstrbuf error; + FFstrbuf playerId; // Bus name on Linux, app bundle name on macOS. e.g. plasma-browser-integration + FFstrbuf player; // e.g. Google Chrome + FFstrbuf song; + FFstrbuf artist; + FFstrbuf album; + FFstrbuf url; + FFstrbuf status; + FFstrbuf cover; + uint32_t length; // In milliseconds + uint32_t position; // In milliseconds + bool removeCoverAfterUse; +} FFMediaResult; + +const FFMediaResult* ffDetectMedia(bool saveCover); |