李通洲
75ff054255
Dbus: adds 2nd argument to ffDBusGetMethodReply
2025-09-04 08:45:09 +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
apocelipes
05f14764e6
Bluetooth (Linux): silence an unused variable warning ( #1717 )
2025-04-28 22:50:46 +08:00
李通洲
f8a5d5561a
Bluetooth (NetBSD): add base implementation
...
Ref: #1690
2025-04-15 19:06:39 +08:00
李通洲
7562e05123
Chore: fix a lot code smell
2025-03-25 22:08:50 +08:00
Carter Li
24e94acbb9
Bluetooth (Haiku): suppress debug output of system API
2025-02-16 21:43:35 +08:00
Carter Li
41d930b1e1
Bluetooth (Haiku): WIP
2025-02-16 20:37:21 +08:00
Carter Li
d6028370e7
Bluetooth (FreeBSD): add support (not tested)
2024-12-27 14:49:15 +08:00
李通洲
e2fc83fd48
Bluetooth (Windows): silence compiler warnings
2024-12-21 23:54:30 +08:00
Carter Li
74586a9df1
Bluetooth (Linux): improve performance
...
1. ignore unpaired devices
2. ignore disconnected devices when `showDisconnected == false`
2024-12-20 15:57:17 +08:00
李通洲
b152b383a2
Bluetooth (Windows): optimise
...
1. don't report disconnected devices if `showDisconnected == false`
2. don't report unknown devices
3. don't report errors when no devices found
2024-12-20 15:57:17 +08:00
李通洲
ae26692ef6
Bluetooth (macOS): don't report disconnected devices if showDisconnected == false
2024-12-20 15:57:17 +08:00
Carter Li
4f807f26a9
Bluetooth (Linux): improve performance when showDisconnected == false
...
If no connected devices found, no dbus calls will be emitted
Fix #1450
2024-12-20 15:57:02 +08:00
李通洲
07f2a71b3c
Bluetooth (Windows): detect battery level
2024-11-09 20:23:25 +08:00
李通洲
acb38fa3ee
Bluetooth (Windows): detect battery (WIP)
2024-11-06 08:25:54 +08:00
李通洲
8f750da559
Bluetooth (Windows): fix mac address detection
2024-11-06 08:25:06 +08:00
李通洲
9a34cb98dc
Bluetooth (macOS): normalize mac address strings
2024-11-05 16:39:04 +08:00
李通洲
ef974ef8c0
Bluetooth (macOS): support battery level detection
2024-11-05 11:06:54 +08:00
李通洲
c9d539090d
Global: remove --lib-xxx support
2024-09-04 15:56:11 +08:00
Carter Li
e6cf7fdb9f
Bluetooth (Linux): update for DBus api changes
2024-08-03 22:04:53 +08:00
Carter Li
c14ba32b82
BluetoothRadio: add more props; remove hciVersion; code cleanup
2024-07-28 15:59:32 +08:00
Carter Li
2c7cd6df98
Bluetooth (Linux): more strict checks
2024-07-28 10:54:49 +08:00
Carter Li
db1fbe0a30
DBus: rename ffDBusGetValue to ffDBusGetString; add ffDBusGetUint16
2024-07-28 10:54:26 +08:00
李通洲
ce648e9e44
Bluetooth (Windows): tidy; update module description
2024-07-28 00:04:25 +08:00
李通洲
36bf978dc1
Bluetooth (Windows): remove hard dep of bthprops
...
Also fix resource leaks and better error message
Ref: https://github.com/fastfetch-cli/fastfetch/issues/623#issuecomment-1815682290
2023-11-18 16:09:54 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
6ccf8856b9
Bluetooth (Windows): fix mac address detection
2023-09-24 21:16:54 +08:00
李通洲
fb3fb1bf99
Bluetooth: rename FFBluetoothDevice to FFBluetoothResult
2023-09-05 15:29:46 +08:00
李通洲
55e0f8e5dd
Linux (Bluetooth): silence warnings
2023-07-15 08:25:06 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00
李通洲
baa8992322
Global: refactor strcmp() == 0 to ffStrEquals()
2023-06-19 17:11:57 +08:00
李通洲
88f354a872
Bluetooth: don't use singleton
2023-06-12 23:39:56 +08:00
李通洲
725d2f2612
Windows: fix <Windows.h> header mess
2023-03-25 00:50:40 +08:00
李通洲
7a5da23b0c
Bluetooth: silense compiler warnings
2023-02-06 14:55:57 +08:00
Linus Dierheimer
14dcafe2ca
Bluetooth(Linux): Refactor code a bit
2023-01-27 18:21:42 +01:00
Linus Dierheimer
cf78216d78
Sound(Linux): Don't abuse manufactor
2023-01-27 18:03:57 +01:00
李通洲
b0c19256f0
Bluetooth: silense warnings
2023-01-27 13:10:06 +08:00
李通洲
aa36a83182
Windows: silense some warnings
2023-01-25 17:25:05 +08:00
李通洲
e598598ca8
Bluetooth (macOS): add support
...
Limitation: no battery level
2023-01-24 22:13:53 +08:00
李通洲
85599fcf53
Bluetooth (Windows): add support
...
Limitation: no HLE devices, no battery level
2023-01-24 21:01:21 +08:00
Linus Dierheimer
209d0c98d9
Bluetooth: Support multiple devices
2023-01-24 12:02:20 +01:00
Linus Dierheimer
4967d0a222
Bluetooth: Build on unsupported platforms
2023-01-24 10:46:00 +01:00
Linus Dierheimer
25e81b39f9
Bluetooth module
2023-01-24 10:39:33 +01:00