李通洲
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