Skip to content

RDKEMW-20831 : remove ctrlm unused IARM calls/events#258

Merged
dwolaver merged 22 commits into
developfrom
feature/RDKEMW-20831_remove_unused_iarm_calls_events
Jul 22, 2026
Merged

RDKEMW-20831 : remove ctrlm unused IARM calls/events#258
dwolaver merged 22 commits into
developfrom
feature/RDKEMW-20831_remove_unused_iarm_calls_events

Conversation

@dwolaver

@dwolaver dwolaver commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@egalla204 egalla204 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approved for test

@dwolaver
dwolaver marked this pull request as ready for review July 7, 2026 01:04
@dwolaver
dwolaver requested a review from a team as a code owner July 7, 2026 01:04
Copilot AI review requested due to automatic review settings July 7, 2026 01:04

Copilot AI left a comment

Copy link
Copy Markdown

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 (RDKEMW-20831) removes a broad set of unused legacy IARM calls/events (voice, RCU, device update, and some main/control-service surfaces) and cleans up associated code paths and documentation to reduce maintenance burden in the Control Manager plugin.

Changes:

  • Removes legacy IARM RPCs/events and related queue/message handlers across main/RCU/voice/device-update.
  • Refactors RF4CE pairing timeout setting to use an internal helper instead of the removed main-property IARM path.
  • Prunes/marks deprecated portions of public IPC headers and deletes old Doxygen/IARM documentation artifacts.

Reviewed changes

Copilot reviewed 33 out of 43 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp Stubs out legacy voice IARM legacy IPC implementation.
src/voice/ctrlm_voice_obj.cpp Narrows legacy DB voice-settings variables to the legacy DB branch only.
src/rf4ce/ctrlm_rf4ce_network.h Removes unused chip-status request handler declaration.
src/rf4ce/ctrlm_rf4ce_network.cpp Removes chip-status handler logic; updates pairing timeout path to call new helper.
src/database/ctrlm_database.h Removes unused voice-settings write API declaration.
src/database/ctrlm_database.cpp Removes unused voice-settings write API implementation.
src/ctrlm.h Removes unused message types/APIs; adds helper prototype for screenbind timeout.
src/ctrlm_utils.h Removes unused stringification helpers from the public header.
src/ctrlm_utils.cpp Removes unused stringification helper implementations and queue-msg type strings.
src/ctrlm_rcu.h Removes unused RCU IARM call entry points (validation finish, reverse cmd).
src/ctrlm_rcu.cpp Removes unused RCU validation-finish and reverse-cmd implementations.
src/ctrlm_rcu_iarm.cpp Removes registration/dispatch for removed RCU IARM calls.
src/ctrlm_network.h Removes chip-status request virtual from base network.
src/ctrlm_network.cpp Removes base implementation of chip-status request processing.
src/ctrlm_main.cpp Removes unused main-queue handlers; introduces ctrlm_main_active_period_screenbind_timeout_set_.
src/ctrlm_main_iarm.cpp Removes unused main IARM calls; stubs property-set call as unsupported.
src/ctrlm_device_update.h Removes unused device-update query/event APIs.
src/ctrlm_device_update.cpp Disables legacy device-update IARM event emission (commented out call sites).
src/ctrlm_device_update_iarm.cpp Removes registration/handlers for removed device-update IARM calls/events.
include/ctrlm_ipc.h Removes deprecated call name macros/structs; marks some events as deprecated; trims Doxygen blocks.
include/ctrlm_ipc_voice.h Removes legacy voice update-settings call and legacy event structs/enums/docs.
include/ctrlm_ipc_rcu.h Removes legacy validation-finish/reverse-cmd call definitions and large doc blocks.
include/ctrlm_ipc_key_codes.h Removes file-level Doxygen header comment.
include/ctrlm_ipc_device_update.h Removes legacy device-update IARM calls/events/structs/docs, leaving update-available path.
include/ctrlm_ipc_ble.h Removes unused BLE daemon log-level call types/constants.
doxygen/iarm/libIBus.h Deletes bundled IARM header documentation file.
doxygen/iarm/libIARM.h Deletes bundled IARM header documentation file.
doxygen/ctrlm_dox_ipc.h Deletes legacy IPC Doxygen mainpage content.
doxygen/ctrlm_dox_ipc_voice.h Deletes legacy voice IPC Doxygen mainpage content.
doxygen/ctrlm_dox_ipc_rcu.h Deletes legacy RCU IPC Doxygen mainpage content.
doxygen/ctrlm_dox_ipc_device_update.h Deletes legacy device-update IPC Doxygen mainpage content.
doxygen/ctrlm_dox_hal_rf4ce.h Deletes legacy RF4CE HAL Doxygen mainpage content.
doxygen/build_docs.py Deletes the Doxygen build/release helper script.

Comment thread src/ctrlm_main.cpp
Comment thread src/ctrlm_main.cpp
Comment thread src/ctrlm_main_iarm.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Comment thread src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
Copilot AI review requested due to automatic review settings July 22, 2026 19:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 33 out of 43 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (10)

src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:35

  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:39
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:43
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:47
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:51
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameters as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:55
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp:59
  • These handlers now ignore their input parameters, which can trigger -Wunused-parameter warnings in builds that enable it. Mark the parameter as intentionally unused.
    src/ctrlm_main_iarm.cpp:223
  • The PropertySet IARM call no longer validates api_revision and always returns a generic error. Even if the call is deprecated, it's useful to preserve the standard revision check and return ERROR_NOT_SUPPORTED for clarity.
   XLOGD_INFO("not supported");
   
   property->result = CTRLM_IARM_CALL_RESULT_ERROR;
   
   return(IARM_RESULT_SUCCESS);

src/ctrlm_main.cpp:3394

  • Format specifier mismatch: timeout is uint32_t but the log uses %lu (unsigned long). This can warn or misprint on platforms where uint32_t is unsigned int. Use %u (or PRIu32).
      XLOGD_ERROR("ACTIVE PERIOD SCREENBIND - Out of range %lu", timeout);

src/ctrlm_main.cpp:3399

  • Format specifier mismatch: timeout is uint32_t but the log uses %lu (unsigned long). This can warn or misprint on platforms where uint32_t is unsigned int. Use %u (or PRIu32).
   XLOGD_INFO("ACTIVE PERIOD SCREENBIND %lu ms", timeout);

Comment thread include/ctrlm_ipc.h
@dwolaver
dwolaver merged commit e0a75fd into develop Jul 22, 2026
11 of 12 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
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