Architecture of krisgfx9/wireless-device-battery-monitor
krisgfx9/wireless-device-battery-monitor is 129 source files holding 1,167 symbols across 4 modules, written mainly in C++, Shell, Makefile. The largest module is src, with 91 files, and 1 file is an entry point into the dependency graph.
How wireless-device-battery-monitor fits together
Each vendor driver in src/drivers/ recognises its devices by USB vendor and product ID and sends only read-only battery queries. Unknown devices are never written to. The generic fallbacks (HID battery usage, Bluetooth, XInput, HeadsetControl) only handle devices that no vendor driver has claimed. The program starts at src/main.cpp, the single entry point. The taskbar display is a layered child window of Shell_TrayWnd, placed left of TrayNotifyWnd, and its code is in src/widget.cpp. The tests/ directory holds 23 files, and .github/workflows/build.yml defines the build workflow.
Largest modules
- src: 91 files and 11,973 lines of code
- tests: 23 files and 3,086 lines of code
- root: 2 files and 61 lines of code
- scripts: 2 files and 221 lines of code
Languages
By file count: C++ 114 files, Shell 2 files, Makefile 1 file, Python 1 file.
Documentation
Repowise documents wireless-device-battery-monitor in 119 pages generated from the source, 7 of them written explanations of the repository and its modules. Module guides include:
- src: Device Enumeration and HID Access
- scripts: Release Publishing and PR Safety
More on wireless-device-battery-monitor: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos