master ohmu/fastfetch-openbsd / src / detection / bluetooth / bluetooth.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4#include "modules/bluetooth/option.h"
 5
 6typedef struct FFBluetoothResult {
 7    FFstrbuf name;
 8    FFstrbuf address;
 9    FFstrbuf type;
10    FFBluetoothDeviceType deviceType;
11    uint8_t battery;       // 0-100%
12    double signalQuality;  // 0-100%, -DBL_MAX if unknown
13    bool connected;
14} FFBluetoothResult;
15
16const char* ffDetectBluetooth(FFBluetoothOptions* options, FFlist* devices /* FFBluetoothResult */);