RDKTV-33788: HomeKitAccessory plugin refactoring Reason for change: Changing property to method Test Procedure: Pair the device via HomeKit Risks: None Change-Id: Ifde89296fcae57f9d5c0c71d3a1c3bf4dfec3f68 Signed-off-by: akhan388 <adnan_khan@comcast.com> (cherry picked from commit da0ce65beb95fbeb37a1279521758e3d1524bc54)
diff --git a/recipes-extended/wpe-framework/wpeframework-interfaces/r4.4/0001-RDK-44975-HomeKitAccessory-plugin-refactoring.patch b/recipes-extended/wpe-framework/wpeframework-interfaces/r4.4/0001-RDK-44975-HomeKitAccessory-plugin-refactoring.patch index adc7ec0..169c327 100644 --- a/recipes-extended/wpe-framework/wpeframework-interfaces/r4.4/0001-RDK-44975-HomeKitAccessory-plugin-refactoring.patch +++ b/recipes-extended/wpe-framework/wpeframework-interfaces/r4.4/0001-RDK-44975-HomeKitAccessory-plugin-refactoring.patch
@@ -4,13 +4,13 @@ +++ git/interfaces/Ids.h @@ -369,7 +369,9 @@ namespace Exchange { ID_AIRPLAY_NOTIFICATION = ID_AIRPLAY +1, - + ID_AIRPLAYDAEMON = ID_AIRPLAY +2, - ID_AIRPLAYDAEMON_NOTIFICATION = ID_AIRPLAY +3 + ID_AIRPLAYDAEMON_NOTIFICATION = ID_AIRPLAY +3, + ID_HOMEKITTV = ID_AIRPLAY +4, + ID_HOMEKITTV_NOTIFICATION = ID_AIRPLAY +5 - + }; } Index: git/interfaces/IHomeKitTV.h @@ -55,8 +55,8 @@ + virtual void FactoryReset() = 0; + virtual uint32_t requestAppLaunch(const string& origin, const string& reason, string& result /* @out */) = 0; + virtual uint32_t setCurrentInputSource(const string& inputsource /* @in */, string& response /* @out */) = 0; -+ virtual bool getEnabledStatus() = 0; -+ virtual bool getConnectionStatus() = 0; ++ virtual void getEnabledStatus(bool& result /* @out */) = 0; ++ virtual void getConnectionStatus(bool& result /* @out */) = 0; + virtual uint32_t setAppContainerIPAddress(const string& ipaddress) = 0; + }; + } @@ -98,65 +98,15 @@ + "started", + "stopped" + ] -+ } ++ }, ++ "success": { ++ "summary": "Legacy parameter (always true)", ++ "type": "boolean", ++ "default": true, ++ "example": true ++ } + }, + "properties": { -+ "getEnabledStatus": { -+ "summary": "Airplay On/Off", -+ "readonly": true, -+ "params": { -+ "type": "object", -+ "properties": { -+ "enabled": { -+ "type": "boolean", -+ "example": true -+ }, -+ "success": { -+ "type": "boolean", -+ "example": true, -+ "description": "Indicates whether the request succeeded." -+ } -+ }, -+ "required": [ -+ "success", -+ "enabled" -+ ] -+ }, -+ "errors": [ -+ { -+ "description": "General error", -+ "$ref": "#/common/errors/general" -+ } -+ ] -+ }, -+ "getConnectionStatus": { -+ "summary": "Request whether the AirPlay capable Apple companion device is paired (true) or unpaired (false) with this HomeKit Television Accessory device.", -+ "readonly": true, -+ "params": { -+ "type": "object", -+ "properties": { -+ "paired": { -+ "type": "boolean", -+ "example": true -+ }, -+ "success": { -+ "type": "boolean", -+ "example": true, -+ "description": "Indicates whether the request succeeded." -+ } -+ }, -+ "required": [ -+ "success", -+ "paired" -+ ] -+ }, -+ "errors": [ -+ { -+ "description": "General error", -+ "$ref": "#/common/errors/general" -+ } -+ ] -+ }, + "setAppContainerIPAddress": { + "summary": "Set the Airplay Application containers IP address to Daemon side", + "params": { @@ -219,6 +169,56 @@ + } + ] + }, ++ "getEnabledStatus": { ++ "summary": "Return the status of Airplay On/Off", ++ "result": { ++ "type": "object", ++ "properties":{ ++ "enabled": { ++ "type": "boolean", ++ "example": true ++ }, ++ "success": { ++ "$ref": "#/definitions/success" ++ } ++ }, ++ "required": [ ++ "enabled", ++ "success" ++ ] ++ }, ++ "errors": [ ++ { ++ "description": "General error", ++ "$ref": "#/common/errors/general" ++ } ++ ] ++ }, ++ "getConnectionStatus": { ++ "summary": "Request whether the AirPlay capable Apple companion device is paired (true) or unpaired (false) with this HomeKit Television Accessory device.", ++ "result": { ++ "type": "object", ++ "properties":{ ++ "paired": { ++ "type": "boolean", ++ "example": true ++ }, ++ "success": { ++ "$ref": "#/definitions/success" ++ } ++ }, ++ "required": [ ++ "paired", ++ "success" ++ ] ++ }, ++ "errors": [ ++ { ++ "description": "General error", ++ "$ref": "#/common/errors/general" ++ } ++ ] ++ }, + "requestAppLaunch": { + "summary": "Requests Airplay Daemon to launch specific page of Airplay App", + "params": {