RDKEMW-7075: COM-RPC support to SystemService plugin#738
RDKEMW-7075: COM-RPC support to SystemService plugin#738
Conversation
Reason for change: COM-RPC support to SystemServices plugin Test Procedure: Test SystemServices - All APIs Risks: Medium Priority: P1 version: Patch Signed-off-by:Dineshkumar P [dinesh_kumar2@comcast.com]
Documentation Auto-GeneratedDocumentation has been automatically generated for the changed plugins and committed to this PR branch. The generated documentation files have been added to the PR for review. |
There was a problem hiding this comment.
Pull request overview
This pull request adds COM-RPC support to the SystemServices plugin by introducing a new interface definition, updating the API documentation, and registering new interface IDs.
Changes:
- Added comprehensive COM-RPC interface definition for SystemServices
- Registered new interface IDs for SystemServices and related components
- Added SystemServices documentation link to sidebar
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 14 comments.
| File | Description |
|---|---|
| docs/apis/SystemServices.md | Complete auto-generated API documentation for SystemServices plugin methods and events |
| docs/_sidebar.md | Added navigation link for SystemServices documentation |
| apis/SystemServices/ISystemServices.h | COM-RPC interface definition with all SystemServices methods and notification structures |
| apis/Ids.h | Registered new interface IDs for SystemServices components |
Comments suppressed due to low confidence (1)
docs/apis/SystemServices.md:1
- Inconsistent capitalization: 'Wake up' should be 'wakeup' to match other descriptions, or all should use 'wake up' for consistency.
<!-- Generated automatically, DO NOT EDIT! -->
docs/apis/SystemServices.md
Outdated
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list falg. | | ||
| | [getBootTypeInfo](#getBootTypeInfo) | Get the FSR flag from the emmc raw area. | | ||
| | [getBuildType](#getBuildType) | Returns build type of the image flashed on the device. | |
There was a problem hiding this comment.
Corrected spelling of 'falg' to 'flag'.
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list falg. | | |
| | [getBootTypeInfo](#getBootTypeInfo) | Get the FSR flag from the emmc raw area. | | |
| | [getBuildType](#getBuildType) | Returns build type of the image flashed on the device. | | |
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list flag. | | |
| | [getBootTypeInfo](#getBootTypeInfo) | Get the FSR flag from the emmc raw area. | | |
| | [getBuildType](#getBuildType) | Returns build type of the image flashed on the device flashed on the device. | |
| { | ||
| "jsonrpc": 2.0, |
There was a problem hiding this comment.
The JSON-RPC version should be a string "2.0", not a numeric value 2.0, according to the JSON-RPC 2.0 specification.
docs/apis/SystemServices.md
Outdated
| | Method | Description | | ||
| | :-------- | :-------- | | ||
| | [abortLogUpload](#abortLogUpload) | Stops background process to upload logs. | | ||
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list falg. | |
There was a problem hiding this comment.
Corrected spelling of 'falg' to 'flag'.
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list falg. | | |
| | [getBlocklistFlag](#getBlocklistFlag) | Get block list flag. | |
docs/apis/SystemServices.md
Outdated
| <a id="getMigrationStatus"></a> | ||
| ## *getMigrationStatus* | ||
|
|
||
| set the Migration Status of the device |
There was a problem hiding this comment.
The description states 'set' but this is a getter method (getMigrationStatus). The description should be 'Gets the Migration Status of the device' to accurately reflect the method's purpose.
| set the Migration Status of the device | |
| Gets the Migration Status of the device |
| | result.platformConfig.AccountInfo @brief AccountInfo Details | AccountInfoDetails | AccountInfo Details | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.accountId | string | Account Id | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.x1DeviceId | string | X1 Device Id | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.XCALSessionTokenAvailable | bool | XCAL Session Token Available | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.experience | string | Experience | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.deviceMACAddress | string | Device MAC Address | | ||
| | result.platformConfig.AccountInfo @brief AccountInfo Details.firmwareUpdateDisabled | bool | Whether the firmwareUpdate Disabled | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details | DeviceInfoDetails | DeviceInfo Details | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.quirks | string | The list of installed “quirks” | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions | MIMETypeExclusions | mime Type Exclusions | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.CDVR | string | CDVR | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.DVR | string | DVR | | ||
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.EAS | string | EAS | |
There was a problem hiding this comment.
The field name 'AccountInfo @brief AccountInfo Details' is confusing as it includes '@brief' documentation syntax. This should be a clean identifier without documentation markers.
| | result.platformConfig.AccountInfo @brief AccountInfo Details | AccountInfoDetails | AccountInfo Details | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.accountId | string | Account Id | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.x1DeviceId | string | X1 Device Id | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.XCALSessionTokenAvailable | bool | XCAL Session Token Available | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.experience | string | Experience | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.deviceMACAddress | string | Device MAC Address | | |
| | result.platformConfig.AccountInfo @brief AccountInfo Details.firmwareUpdateDisabled | bool | Whether the firmwareUpdate Disabled | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details | DeviceInfoDetails | DeviceInfo Details | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.quirks | string | The list of installed “quirks” | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions | MIMETypeExclusions | mime Type Exclusions | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.CDVR | string | CDVR | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.DVR | string | DVR | | |
| | result.platformConfig.DeviceInfo @brief DeviceInfo Details.mimeTypeExclusions.EAS | string | EAS | | |
| | result.platformConfig.AccountInfo | AccountInfoDetails | AccountInfo Details | | |
| | result.platformConfig.AccountInfo.accountId | string | Account Id | | |
| | result.platformConfig.AccountInfo.x1DeviceId | string | X1 Device Id | | |
| | result.platformConfig.AccountInfo.XCALSessionTokenAvailable | bool | XCAL Session Token Available | | |
| | result.platformConfig.AccountInfo.experience | string | Experience | | |
| | result.platformConfig.AccountInfo.deviceMACAddress | string | Device MAC Address | | |
| | result.platformConfig.AccountInfo.firmwareUpdateDisabled | bool | Whether the firmwareUpdate Disabled | | |
| | result.platformConfig.DeviceInfo | DeviceInfoDetails | DeviceInfo Details | | |
| | result.platformConfig.DeviceInfo.quirks | string | The list of installed “quirks” | | |
| | result.platformConfig.DeviceInfo.mimeTypeExclusions | MIMETypeExclusions | mime Type Exclusions | | |
| | result.platformConfig.DeviceInfo.mimeTypeExclusions.CDVR | string | CDVR | | |
| | result.platformConfig.DeviceInfo.mimeTypeExclusions.DVR | string | DVR | | |
| | result.platformConfig.DeviceInfo.mimeTypeExclusions.EAS | string | EAS | |
| bool powerKey /* @text WAKEUPSRC_POWER_KEY */ /* @brief Power Button Wake up - GPIO */; | ||
| bool cec /* @text WAKEUPSRC_CEC */ /* @brief HDMI CEC command Wake up */; | ||
| bool lan /* @text WAKEUPSRC_LAN */ /* @brief LAN wake up */; | ||
| bool timer /* @text WAKEUPSRC_TIMER */ /* @brief TImer Wake up */; |
There was a problem hiding this comment.
Corrected capitalization of 'TImer' to 'Timer'.
| bool timer /* @text WAKEUPSRC_TIMER */ /* @brief TImer Wake up */; | |
| bool timer /* @text WAKEUPSRC_TIMER */ /* @brief Timer Wake up */; |
| // @param TimeZoneDSTChangedInfo: The TimeZoneDST changed information | ||
| virtual void OnTimeZoneDSTChanged(const TimeZoneDSTChangedInfo& timeZoneDSTChangedInfo) {}; | ||
|
|
||
| // @text OnMacAddressesRetreived |
There was a problem hiding this comment.
Corrected spelling of 'Retreived' to 'Retrieved'.
| // @text OnMacAddressesRetreived | |
| // @text OnMacAddressesRetrieved |
| // @text OnMacAddressesRetreived | ||
| // @brief Triggered when the getMacAddresses asynchronous method is invoked. | ||
| // @param MacAddressesInfo: The Mac Addresses details | ||
| virtual void OnMacAddressesRetreived(const MacAddressesInfo& macAddressesInfo) {}; |
There was a problem hiding this comment.
Corrected spelling of 'Retreived' to 'Retrieved'.
| // @text OnMacAddressesRetreived | |
| // @brief Triggered when the getMacAddresses asynchronous method is invoked. | |
| // @param MacAddressesInfo: The Mac Addresses details | |
| virtual void OnMacAddressesRetreived(const MacAddressesInfo& macAddressesInfo) {}; | |
| // @text OnMacAddressesRetrieved | |
| // @brief Triggered when the getMacAddresses asynchronous method is invoked. | |
| // @param MacAddressesInfo: The Mac Addresses details | |
| virtual void OnMacAddressesRetrieved(const MacAddressesInfo& macAddressesInfo) {}; |
| virtual Core::hresult SetMigrationStatus(const bool status, bool& success /* @out */) = 0; | ||
|
|
||
| // @text getMigrationStatus | ||
| // @brief set the Migration Status of the device |
There was a problem hiding this comment.
The description states 'set' but this is a getter method (GetMigrationStatus). The description should be 'Gets the Migration Status of the device' to accurately reflect the method's purpose.
| // @brief set the Migration Status of the device | |
| // @brief Gets the Migration Status of the device |
| virtual Core::hresult SetBlocklistFlag(const bool blocklist, BlocklistResult& result /* @out */) = 0; | ||
|
|
||
| // @text getBlocklistFlag | ||
| // @brief Get block list falg. |
There was a problem hiding this comment.
Corrected spelling of 'falg' to 'flag'.
| // @brief Get block list falg. | |
| // @brief Get block list flag. |
Documentation Auto-GeneratedDocumentation has been automatically generated for the changed plugins and committed to this PR branch. The generated documentation files have been added to the PR for review. |
Documentation Auto-GeneratedDocumentation has been automatically generated for the changed plugins and committed to this PR branch. The generated documentation files have been added to the PR for review. |
Reason for change: COM-RPC support to SystemServices plugin
Test Procedure: Test SystemServices - All APIs
Risks: Medium
Priority: P1
version: Patch
Signed-off-by:Dineshkumar P [dinesh_kumar2@comcast.com]