docs: add AGENTS.md coding conventions

Adapt the refix AGENTS.md to this project: build commands, module
layout, C++/Swift/C-bridge style rules, and commit guidelines. C++
headers use .hpp and C headers use .h; the PLAN.md port table is
updated to match.

Co-Authored-By: qwen (qwen/qwen3.8-27b@q2_k_xl): wrote coding conventions
This commit is contained in:
portersky
2026-08-17 14:18:06 +02:00
parent a7d7d0f253
commit 95e958a7e8
2 changed files with 306 additions and 6 deletions
+6 -6
View File
@@ -214,15 +214,15 @@ Downloaded via `scripts/download-firmware.sh` (port of `install/firmware.sh`).
| Linux source | Target | Notes |
| ----------------------- | -------------------------- | ---------------------------------- |
| `transport/mt76.c` | `src/mt76/mt76.c` | Replace USB calls, remove cfg80211 |
| `transport/mt76.h` | `include/mt76/mt76.h` | Clean up kernel types |
| `transport/mt76_defs.h` | `include/mt76/mt76_defs.h` | Mostly copy (register defs) |
| `transport/mt76.h` | `include/mt76/mt76.hpp` | Clean up kernel types |
| `transport/mt76_defs.h` | `include/mt76/mt76_defs.hpp` | Mostly copy (register defs) |
| `bus/protocol.c` | `src/gip/protocol.c` | Replace kernel alloc/lock/debug |
| `bus/protocol.h` | `include/gip/protocol.h` | Clean up kernel types |
| `bus/protocol.h` | `include/gip/protocol.hpp` | Clean up kernel types |
| `bus/bus.c` | `src/gip/bus.c` | Client lifecycle management |
| `auth/auth.c` | `src/auth/auth.c` | Pure crypto, mostly copy |
| `auth/auth.h` | `include/auth/auth.h` | Copy |
| `auth/crypto.c` | `src/auth/crypto.c` | AES-CCMP, mostly copy |
| `auth/crypto.h` | `include/auth/crypto.h` | Copy |
| `auth/auth.h` | `include/auth/auth.hpp` | Copy |
| `auth/crypto.c` | `src/auth/crypto.cpp` | AES-CCMP, mostly copy |
| `auth/crypto.h` | `include/auth/crypto.hpp` | Copy |
| `driver/gamepad.c` | N/A | Replaced by HID layer |
## Build System