blob: ea241e617401cf3e593d59e2987b39a6a8173617 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
|