mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
22 lines
448 B
C
22 lines
448 B
C
#pragma once
|
|
|
|
#include "fastfetch.h"
|
|
|
|
#define FF_BATTERY_TEMP_UNSET (0/0.0)
|
|
|
|
typedef struct FFBatteryResult
|
|
{
|
|
FFstrbuf manufacturer;
|
|
FFstrbuf manufactureDate;
|
|
FFstrbuf modelName;
|
|
FFstrbuf technology;
|
|
FFstrbuf status;
|
|
FFstrbuf serial;
|
|
double capacity;
|
|
double temperature;
|
|
uint32_t cycleCount;
|
|
int32_t timeRemaining;
|
|
} FFBatteryResult;
|
|
|
|
const char* ffDetectBattery(FFBatteryOptions* options, FFlist* results);
|