refactor(host)!: Rename Agent API namespace to board#59
Conversation
- Move public SDK headers from librmcs/agent to librmcs/board - Rename librmcs::agent to librmcs::board across host code - Update internal includes to use the new board API BREAKING CHANGE: Public host SDK includes and namespace references now use board instead of agent.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
Walkthrough将 Changes命名空间重命名:
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
BREAKING CHANGE: Public host SDK includes and namespace references now use board instead of agent.
摘要
该拉取请求将主机代码库中的Agent API命名空间重命名为Board,包括移动公开SDK头文件位置和更新所有相关的命名空间引用。这是一个影响公开主机SDK接口和命名空间的破坏性变更。
受影响的主要文件
公开SDK头文件迁移
host/include/librmcs/board/c_board.hpp:
CBoard类从librmcs::agent命名空间迁移至librmcs::board,同时更新头文件包含从librmcs/agent/common.hpp改为librmcs/board/common.hpphost/include/librmcs/board/common.hpp:
AdvancedOptions结构体和bind_advanced_options()模板函数从librmcs::agent迁移至librmcs::board命名空间host/include/librmcs/board/rmcs_board_lite.hpp:
RmcsBoardLite类及其嵌套类型(Callback、PacketBuilder)从librmcs::agent迁移至librmcs::board命名空间host/include/librmcs/board/rmcs_board_pro.hpp:
RmcsBoardPro类从librmcs::agent迁移至librmcs::board命名空间内部实现文件更新
host/include/librmcs/protocol/handler.hpp:
Handler构造函数参数类型从const agent::AdvancedOptions&更改为const board::AdvancedOptions&host/src/protocol/handler.cpp:同步更新构造函数实现中的
AdvancedOptions参数引用host/src/transport/transport.hpp:类型别名
ConnectionOptions从agent::AdvancedOptions改为board::AdvancedOptions破坏性变更
所有引用以下类型或命名空间的客户端代码需要进行更新:
librmcs::agent::CBoard→librmcs::board::CBoardlibrmcs::agent::AdvancedOptions→librmcs::board::AdvancedOptionslibrmcs::agent::RmcsBoardLite→librmcs::board::RmcsBoardLitelibrmcs::agent::RmcsBoardPro→librmcs::board::RmcsBoardProagent::AdvancedOptions作为函数参数的代码需要更新为board::AdvancedOptions