mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
d0f093c567
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
23 lines
442 B
C
23 lines
442 B
C
#pragma once
|
|
|
|
#ifndef FF_INCLUDED_detection_battery_battery
|
|
#define FF_INCLUDED_detection_battery_battery
|
|
|
|
#include "fastfetch.h"
|
|
|
|
#define FF_BATTERY_TEMP_UNSET (0/0.0)
|
|
|
|
typedef struct BatteryResult
|
|
{
|
|
FFstrbuf manufacturer;
|
|
FFstrbuf modelName;
|
|
FFstrbuf technology;
|
|
double capacity;
|
|
FFstrbuf status;
|
|
double temperature;
|
|
} BatteryResult;
|
|
|
|
const char* ffDetectBattery(FFBatteryOptions* options, FFlist* results);
|
|
|
|
#endif
|