李通洲
75ff054255
Dbus: adds 2nd argument to ffDBusGetMethodReply
2025-09-04 08:45:09 +08:00
Carter Li
817285ac01
Fastfetch: informs users that module-specific CLI options are no longer supported
...
... and provides guidance on transitioning to JSON config
2025-09-03 09:36:16 +08:00
李通洲
54d8b0a95d
Global: adds configurable trailing zeros for double formatting
2025-09-02 14:12:58 +08:00
Carter Li
7a87638fec
InitSystem (GNU): support shepherd detection
2025-08-27 14:46:20 +08:00
carter
bfb93cd8f5
Processing (Linux): enhances robustness when extracting process name and related fields
...
... by accurately handling process names with spaces or special characters.
2025-08-25 10:39:56 +08:00
李通洲
588c4c0026
Chore: silense compiler warnings
2025-08-25 09:25:25 +08:00
Carter Li
4b7f231b5a
Processing (GNU): fix command name reading
2025-08-24 21:52:38 +08:00
Carter Li
74e0732390
Common (GNU): more __GNU__ tests
2025-08-24 21:40:22 +08:00
Carter Li
4a7b3a8493
Processing (GNU): hurd uses cmdline instead of comm
2025-08-24 19:57:54 +08:00
Carter Li
82a1eaf276
Chore: tidy tabs
2025-08-24 19:09:51 +08:00
Yelninei
1a2f4b4c1f
Port netif_gnu to the new api.
2025-08-24 11:29:01 +01:00
Yelninei
e968bca89d
Fork netif_linux to netif_gnu.
...
netif_linux now uses linux specifics which do not work on GNU.
2025-08-24 11:29:01 +01:00
Yelninei
71fbe04367
Start work on GNU
2025-08-24 11:29:01 +01:00
李通洲
8589bf2392
Chore: silence compiler warnings
2025-08-23 15:31:42 +08:00
Carter Li
de2dff5da0
Common: corrects the position for appending milliseconds
2025-08-20 11:07:53 +08:00
Carter Li
b05c54486f
LocalIP (Linux): improves netlink route parsing by avoiding possible message truncation
...
Fixes #1919
2025-08-20 11:07:06 +08:00
李通洲
ec0fa89cc8
Common: refactors number formatting to use type-specific append functions
2025-08-19 17:22:11 +08:00
李通洲
7f48500cfd
Format: replaces format specifiers with type-safe append functions
2025-08-19 16:04:00 +08:00
李通洲
8e282a3865
Duration: use ffStrbufAppendUInt
2025-08-19 15:19:12 +08:00
李通洲
ea86273a0e
Common: refactors time formatting to use a shared buffer and utility macro
2025-08-19 09:49:43 +08:00
李通洲
805e277429
JsonConfig: adds 'succeeded' module condition to JSON config
...
Fixes #1908
2025-08-18 14:18:37 +08:00
李通洲
3b5e9c74d6
Modules: return bool to indicate whether the detection is succeeded
2025-08-18 13:38:30 +08:00
李通洲
6356f9d0e5
Netif (Linux): improves default route detection and error handling
...
Ref: #1902
2025-08-16 17:15:44 +08:00
李通洲
597c6f3dbc
Netif (Linux): add verbose logs
2025-08-16 15:13:07 +08:00
李通洲
81bac8bca4
Percent: refactors bar color logic for clarity and consistency; update examples
2025-08-14 16:47:30 +08:00
李通洲
56d22292b0
Revert "Percent: fix a copy-paste error"
...
This reverts commit 3345c1e9dd .
2025-08-14 16:04:55 +08:00
李通洲
0fe3db419e
Separator: honors FQDN settings in Title module
2025-08-14 13:30:02 +08:00
李通洲
61f2823903
Global: fixes -ffast-math compatibility
...
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
2025-08-14 10:01:34 +08:00
李通洲
146981009b
CommandLine: add --gen-config-full
2025-08-11 14:49:22 +08:00
李通洲
3345c1e9dd
Percent: fix a copy-paste error
2025-08-11 14:18:41 +08:00
李通洲
329cb229f8
Chore: remove unused functions
2025-08-10 23:15:13 +08:00
李通洲
bedb5eb6c5
Netif (SunOS): work around a bug that fails to detect default route for IPv4
2025-08-10 21:42:01 +08:00
李通洲
4588644d39
Networking (SunOS): fix compiler warnings
2025-08-09 18:35:53 +08:00
李通洲
ed94b4c46c
Netif (SunOS): fix compiler warnings
2025-08-09 18:34:25 +08:00
李通洲
8cfee9d693
Netif: unifies BSD netif handling
2025-08-08 11:03:04 +08:00
Carter Li
64568b31d1
Netif (Haiku): add preferred source addr
2025-08-08 10:03:43 +08:00
李通洲
be11013ae2
LocalIP (BSD): fix building
2025-08-07 23:28:54 +08:00
Carter Li
a84c4dc1f4
Netif: refactor API for dual-stack route detection
...
Unifies IPv4 and IPv6 default route queries under a shared result structure and per-family functions. Improves clarity and extensibility by centralizing route logic, streamlining detection of preferred interfaces, and updating all consumers to use the new API.
Prepares for more robust multi-protocol network information handling.
2025-08-07 16:35:42 +08:00
李通洲
b20aea7ab8
Netif (BSD): split different implementations
2025-08-06 13:58:41 +08:00
Jannis Pohl
5e770dc8b0
LocalIP: consider preferred source address when retrieving default route ( #1883 )
...
* LocalIP: consider preferred source address when retrieving default route
* LocalIP: fix logic error when there is no preferred source address
* LocalIP: use macros rather than manual free/close
* LocalIP(BSD): fix build error
* LocalIP: address Copilot suggestions
2025-08-05 23:30:06 +08:00
李通洲
fa4e11c73b
JsonConfig: write all flags when generating config file
2025-08-05 16:47:48 +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
李通洲
6f8d276545
Modules: add init and destroy option callbacks to module info
2025-08-03 18:40:53 +08:00
李通洲
094d736d38
Modules: remove all parseCommandOptions and related stuff
2025-08-03 10:22:32 +08:00
Carter Li
59289bef6c
Percent: silense compiler warnings
2025-08-02 19:03:42 +08:00
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
3cef51ec4a
JsonConfig: refactor string buffer JSON handling for robustness
2025-08-02 17:41:19 +08:00
李通洲
ba3e26f2b4
Option: fix a possible null reference segfault
2025-08-01 16:05:18 +08:00
李通洲
54c5bc5110
Bar: refactor config to use nested objects and deprecates old fields
2025-08-01 15:12:30 +08:00
李通洲
c6675f82f0
Bar: add customizable bar color options for percentage bars
2025-08-01 15:03:24 +08:00