Skip to content

Topic/rdkemw 16330 1#194

Open
jthomp007c wants to merge 11 commits into
developfrom
topic/RDKEMW-16330-1
Open

Topic/rdkemw 16330 1#194
jthomp007c wants to merge 11 commits into
developfrom
topic/RDKEMW-16330-1

Conversation

@jthomp007c
Copy link
Copy Markdown
Contributor

No description provided.

egalla204 and others added 7 commits March 6, 2026 10:25
Reason for Chanage: RDK-E uses a boolean to report whether
Networked Standby Mode is enabled, rather than a JsonObject

Test Procedure: Confirm that Control Manager enters NSM when it should

Priority: P0

Signed-off-by: Jason Thomson <jason_thomson@comcast.com>
@jthomp007c jthomp007c requested a review from a team as a code owner April 6, 2026 13:21
Copilot AI review requested due to automatic review settings April 6, 2026 13:21
Copy link
Copy Markdown

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

Updates the Thunder PowerManager integration to consume typed JSON-RPC results (bool/string) for specific calls, aligning Control Manager behavior with NSM (network standby mode) being a boolean.

Changes:

  • Add typed helper APIs to ctrlm_thunder_plugin_t for invoking Thunder methods that return bool or string.
  • Update PowerManager Thunder plugin calls to use the new typed helpers for getNetworkStandbyMode and getLastWakeupReason.
  • Update changelog and fix minor comment grammar.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/thunder/ctrlm_thunder_plugin.h Adds new typed invoke helpers and adjusts related API comments.
src/thunder/ctrlm_thunder_plugin.cpp Implements call_plugin_boolean and call_plugin_string Thunder invoke wrappers.
src/thunder/ctrlm_thunder_plugin_powermanager.cpp Switches NSM and wakeup-reason retrieval to the typed helpers.
CHANGELOG.md Adds release entry for 1.1.11p1 referencing the NSM bool update.
Comments suppressed due to low confidence (1)

src/thunder/ctrlm_thunder_plugin.h:153

  • The call_controller() Doxygen has two @param entries named "params"; the second one appears to describe the response object. This should be @param response (and keep "params" for the request parameters) to prevent incorrect generated docs.
    /**
     * This function is used to call a Thunder Controller method.
     * @param method The method in which the user wants to call.
     * @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
     * @param params The WPEFramework JsonObject containing the response from the call.  (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
     * @return True if the call succeeded, otherwise False.
     */
    bool call_controller(std::string method, void *params, void *response);

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 108 to 115
@@ -115,7 +115,7 @@ class ctrlm_thunder_plugin_t {
bool property_get(std::string property, void *response, unsigned int retries = 0);
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

The Doxygen for property_get() is describing a "method" parameter, but the function signature takes a "property" string. This makes the API docs misleading; update the @param name/description to match the actual "property" argument (and what it represents).

Copilot uses AI. Check for mistakes.
Comment thread src/thunder/ctrlm_thunder_plugin.h
Comment on lines +137 to +145
/**
* This function is used to call a Thunder Plugin method.
* @param method The method in which the user wants to call.
* @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
* @param response The WPEFramework JsonObject containing the response from the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
* @return True if the call succeeded, otherwise False.
*/
bool call_plugin_string(std::string method, void *params, std::string *response);

Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

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

The documentation for call_plugin_string() says the response is a WPEFramework JsonObject, but the function actually returns a std::string via the response pointer. Update the @param response description to avoid confusing callers.

Copilot uses AI. Check for mistakes.
Address copilot comments
Copilot AI review requested due to automatic review settings April 8, 2026 17:57
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/thunder/ctrlm_thunder_plugin.h Outdated
* @param method The method in which the user wants to call.
* This function is used to get a Thunder Plugin property.
* @param property The property the user wants to get
* @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

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

The documentation for property_get() lists an @param "params", but the function signature only takes (property, response, retries). Update the comment to remove/rename that parameter so the header docs match the API.

Suggested change
* @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)

Copilot uses AI. Check for mistakes.
Comment thread src/thunder/ctrlm_thunder_plugin.h Outdated
* This function is used to call a Thunder Plugin method.
* @param method The method in which the user wants to call.
* @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
* @param response A pointer a string which will be assigned
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

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

call_plugin_string() Doxygen comment is incomplete/grammatically incorrect ("A pointer a string which will be assigned"). Please clarify what the string represents (e.g., method result) and fix the wording so the API contract is unambiguous.

Suggested change
* @param response A pointer a string which will be assigned
* @param response A pointer to a string that will be assigned the method response.

Copilot uses AI. Check for mistakes.
Comment thread src/thunder/ctrlm_thunder_plugin.h
Comment thread src/thunder/ctrlm_thunder_plugin.cpp
Comment thread src/thunder/ctrlm_thunder_plugin.cpp
Copilot AI review requested due to automatic review settings April 8, 2026 18:15
Copy link
Copy Markdown

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/thunder/ctrlm_thunder_plugin.h
Copilot AI review requested due to automatic review settings April 8, 2026 18:50
Copy link
Copy Markdown

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

src/thunder/ctrlm_thunder_plugin.h:149

  • The call_controller() docblock lists "@param params" twice (the second one is describing the response). This makes the generated documentation misleading. Rename the second tag to "@param response" (or equivalent) to match the function signature.
    /**
     * This function is used to call a Thunder Controller method.
     * @param method The method in which the user wants to call.
     * @param params The WPEFramework JsonObject containing the parameters for the call. (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
     * @param params The WPEFramework JsonObject containing the response from the call.  (We can't include WPEFramework headers in controlMgr .h files as their logging macros clash)
     * @return True if the call succeeded, otherwise False.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants