李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +08:00
Carter Li
6cf403da7d
Global: renames smbiosHelper to smbios
2026-03-31 20:01:25 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
Carter Li
a313fd1572
Linux: uses the standard /sys/firmware/devicetree/base instead of the outdated /proc/device-tree
2026-01-20 09:11:47 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
e23edae917
Board (macOS): removes an unused #include
2026-01-04 15:37:11 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
3fcbd80ef0
Board (macOS): detect board-id if available
...
Ref: https://github.com/GuillaumeGomez/sysinfo/pull/1545
2025-06-17 00:06:31 +08:00
李通洲
1ea3264b13
SMBIOS (NetBSD): add more data
2024-12-21 23:54:30 +08:00
李通洲
4665fdd145
Global: make it compile on NetBSD
...
Doesn't work yet.
2024-10-27 11:43:36 +08:00
Carter Li
46c8bc1f99
Board (Linux): trim strings
2024-10-03 20:47:31 +08:00
Carter Li
2cd6cb3ca1
Board (Linux): use /proc/device-tree/board if available
2024-09-30 15:00:55 +08:00
Carter Li
b7fcd7fc0c
Board (Linux): use model name as board name if SMBIOS is not available
2024-09-10 09:17:09 +08:00
李通洲
6439921f85
Smbios (Windows): check if getting SMBIOS data succeeds
2024-05-11 18:07:56 +08:00
李通洲
fef3100fd7
Smbios: add struct layout check
2024-05-11 15:05:43 +08:00
李通洲
c0c32456e8
Board: detect serial number
2024-01-06 18:12:51 +08:00
李通洲
48bb82c8fb
Board (Windows): use SMBIOS result
2024-01-06 17:11:26 +08:00
李通洲
2340c2afd7
Board (macOS): print internal name instead of model indentifier
...
and actually detect the vendor
2024-01-05 16:24:43 +08:00
Carter Li
cf98e6f5a1
Global: remove unexpected trailing line endings
...
Ref: https://github.com/fastfetch-cli/fastfetch/pull/671#issuecomment-1867777472
2023-12-23 00:19:50 +08:00
李通洲
00721630ce
Board (Apple): use machine model indentifier as motherboard name
2023-11-28 13:36:19 +08:00
Marius Messerschmidt
6fe0eb5677
ClangTidy: avoid different parameter names for same function
2023-11-18 12:31:57 +01:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
7147029c96
Board (Android): add support
2023-07-27 22:43:47 +08:00
李通洲
c6416b5ccb
Host (Windows): cleanup useless smbios values
2023-07-04 17:53:28 +08:00
李通洲
e4e5560b75
Board: code refactor
2023-06-22 22:32:14 +08:00
Carter Li
376cb4a1eb
Global: SMBIOS related code cleanup
2023-06-22 10:45:43 +00:00
李通洲
9369122017
Board: silense compiler warnings
2023-06-20 14:46:15 +08:00
李通洲
2ff4daef20
Board: simplify code
2023-06-19 21:27:47 +08:00
李通洲
eef3afabb7
Board: print version; don't print N/A
2023-06-19 21:20:18 +08:00
李通洲
b5da203571
Board (FreeBSD): add support
2023-06-15 13:49:18 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
李通洲
5c381460ce
util: rename register -> registry
2022-11-27 12:21:53 +08:00
李通洲
4fa3ca98a2
util/register: fix crashing when value string contains non-ascii chars
...
We can't use RegGetValueA because RegGetValueA converts wide string to non UTF-8 string, which results in crashing when printing
2022-11-23 17:44:57 +08:00
李通洲
5aebb400da
Board: improve performance (Windows)
2022-11-22 19:40:56 +08:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +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
李通洲
230d2ac39d
Board: split out from host; add support for Windows
2022-10-06 23:03:15 +08:00