-
Notifications
You must be signed in to change notification settings - Fork 3
RDKEMW-8929: Refactor base ipc class #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reason for change: Test Procedure: Risks: Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com>
egalla204
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved for test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the IPC (Inter-Process Communication) base class to consolidate common IARM functionality and eliminate code duplication. The refactoring moves broadcast event functions from individual IPC implementations into a base class template, making the code more maintainable and reusable across different IPC implementations.
Key Changes:
- Introduced
api_revision_member and associated getter/setter methods in the basectrlm_ipc_iarm_tclass - Converted
broadcast_iarm_eventfunctions to templated methods in the base class to support different event structure types - Consolidated duplicate
broadcast_eventstatic functions from voice IPC implementations into the base class
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ipc/ctrlm_ipc_iarm.h | Added api_revision management, templated broadcast_iarm_event functions, and broadcast_iarm_event_legacy method |
| src/ipc/ctrlm_ipc_iarm.cpp | Implemented api_revision getter/setter and broadcast_iarm_event_legacy; removed old broadcast_iarm_event implementation |
| src/voice/ipc/ctrlm_voice_ipc.h | Made ctrlm_voice_ipc_t inherit from ctrlm_ipc_iarm_t base class |
| src/voice/ipc/ctrlm_voice_ipc_iarm_thunder.cpp | Updated constructor to set api_revision, refactored to use base class methods, removed duplicate broadcast_event function |
| src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp | Updated to use broadcast_iarm_event_legacy from base class, removed duplicate broadcast_event function |
| src/ipc/ctrlm_rcp_ipc_iarm_thunder.cpp | Added api_revision initialization and updated broadcast_iarm_event calls to use template syntax |
| include/ctrlm_ipc_voice.h | Minor whitespace cleanup in comments |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Reason for change:
Test Procedure:
Risks: