李通洲
8a284ae9a1
Battery: use module options
2023-06-12 10:32:35 +08:00
李通洲
39582471e8
Global: major FFlist related code refactor
2023-06-10 09:15:15 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
4e3e469ba8
Battery: major code refactoring
...
ditto
2023-06-10 09:15:15 +08:00
李通洲
aea0986928
CMake(Windows): remove USE_WIN_NTAPI option
2023-05-11 19:55:31 +08:00
李通洲
725d2f2612
Windows: fix <Windows.h> header mess
2023-03-25 00:50:40 +08:00
李通洲
e05d9da231
Battery / Wifi: fix missing NULL for ffProcessAppendStdOut
2023-02-22 15:12:37 +08:00
李通洲
3e068d16df
Wifi / Battery (Android): more accurate checks
2023-02-21 21:25:02 +08:00
李通洲
efdbeb585b
Battery (Android): add temperature
2023-02-21 09:43:22 +08:00
李通洲
304f171d38
Battery / Wifi (Android): add more debug messages
2023-02-21 09:42:41 +08:00
李通洲
8ffe6fda9b
Battery: drop powrprof.dll dependency
2023-02-08 15:11:50 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
李通洲
c1444c0822
Android: support Wifi & Battery by using termux-api
2023-01-21 15:23:40 +08:00
李通洲
b1f63ab822
Global: rename FF_UNUSED_PARAM to FF_MAYBE_UNUSED since it can be used on functions too.
2023-01-11 14:47:10 +08:00
李通洲
b8393051e4
Battery: add comments for future use (FreeBSD)
2023-01-11 13:52:14 +08:00
李通洲
bc8a7a03c3
Battery: fix bug on FreeBSD
...
oops
2023-01-10 12:42:15 +08:00
李通洲
d4c361ae12
Battery: support FreeBSD
...
Completely untested
2023-01-10 12:36:38 +08:00
李通洲
0fd63084dc
Global: fix other possible bugs where enumerating directories without ignoring . and ..
2023-01-09 10:45:51 +08:00
李通洲
27fb0c6c06
Battery: improve performance (Windows)
2022-12-17 12:31:37 +08:00
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
051423e75e
util: add mallocHelper and use it
2022-11-23 17:44:57 +08:00
李通洲
27212e8b98
Battery: improve performance (Windows)
2022-11-23 15:38:59 +08:00
李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
e13c88cea6
Global: support bar output for percentage value #294
2022-10-22 16:15:12 +08:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +08:00
李通洲
5e3e2b6137
Windows: fix possible crashes
2022-10-12 00:19:31 +08:00
李通洲
f2540f00a5
Address some feedbacks
2022-10-09 23:23:46 +08:00
李通洲
49921f5ed1
Disk: add support for Windows
...
Also major refactoring of util/windows/wmi
2022-10-09 15:37:14 +08:00
李通洲
bedd6a1d5d
Battery: add support for Windows
2022-10-09 15:37:13 +08:00
李通洲
100e59fd49
Temps: add options to enable detection ( disabled by default )
2022-09-26 15:29:11 +08:00
李通洲
51c70bc44a
Temps: support macOS
2022-09-26 15:29:11 +08:00
李通洲
5498b0b042
PowerAdapter: make it a seperated module
2022-09-23 15:33:23 +08:00
李通洲
6e09157235
Battery: add power adapter support ( macOS )
2022-09-22 19:07:18 +08:00
李通洲
7f19cb1d21
Battery: print error info instead of nan% ( macOS )
2022-09-20 18:26:50 +08:00
李通洲
482e5a5eff
util/cf_helpers: rename; return error info if failed
2022-09-20 17:50:14 +08:00
Carter Li
4d569db0fd
refactor: use MACH_PORT_NULL instead of magic number 0
2022-09-17 03:02:03 +08:00
Carter Li
d46f9ab4dc
util/cfdict_helpers: code improvements
...
1. simplify CFString usage
2. support get string from CFDataRef
2022-09-17 03:01:24 +08:00
Carter Li
d5500ad4f7
Battery: fix Intel compatibility
...
`MaxCapacity` on Intel MBP is not 100
2022-09-17 01:49:00 +08:00
李通洲
413d126bcc
Battery: add dirty support for macOS
2022-09-16 23:43:08 +08:00
李通洲
f362fdb01d
Battery: move detection code into src/detection
...
Prepare for macOS implementation
2022-09-16 23:43:08 +08:00