Skip to content

Conversation

@klu339
Copy link
Contributor

@klu339 klu339 commented Dec 9, 2025

Reason for change:
Test Procedure:
Risks:

Reason for change:
Test Procedure:
Risks:
Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com>
@klu339 klu339 marked this pull request as ready for review December 9, 2025 20:28
@klu339 klu339 requested a review from a team as a code owner December 9, 2025 20:28
Copy link
Contributor

@egalla204 egalla204 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved for test

egalla204
egalla204 previously approved these changes Dec 11, 2025
Copy link

Copilot AI left a 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 base ctrlm_ipc_iarm_t class
  • Converted broadcast_iarm_event functions to templated methods in the base class to support different event structure types
  • Consolidated duplicate broadcast_event static 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.

@klu339 klu339 merged commit 3ab9e92 into develop Dec 16, 2025
8 checks passed
@klu339 klu339 deleted the feature/RDKEMW-8929 branch December 16, 2025 17:01
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants