master ohmu/fastfetch-openbsd / src / detection / media / media.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/media/option.h"
 5
 6typedef struct FFMediaResult {
 7    FFstrbuf error;
 8    FFstrbuf playerId; // Bus name on Linux, app bundle name on macOS. e.g. plasma-browser-integration
 9    FFstrbuf player;   // e.g. Google Chrome
10    FFstrbuf song;
11    FFstrbuf artist;
12    FFstrbuf album;
13    FFstrbuf url;
14    FFstrbuf status;
15    FFstrbuf cover;
16    uint32_t length; // In milliseconds
17    uint32_t position; // In milliseconds
18    bool removeCoverAfterUse;
19} FFMediaResult;
20
21const FFMediaResult* ffDetectMedia(bool saveCover);