diff --git a/examples/all-clusters-app/all-clusters-common/include/bridged-actions-stub.h b/examples/all-clusters-app/all-clusters-common/include/bridged-actions-stub.h index 1366f404b98672..6c1a5c65fd8f20 100644 --- a/examples/all-clusters-app/all-clusters-common/include/bridged-actions-stub.h +++ b/examples/all-clusters-app/all-clusters-common/include/bridged-actions-stub.h @@ -86,17 +86,22 @@ class ActionsDelegateImpl : public Delegate CHIP_ERROR FindActionIdInActionList(uint16_t actionId) override; Protocols::InteractionModel::Status HandleInstantAction(uint16_t actionId, Optional invokeId) override; - Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime, Optional invokeId) override; + Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime, + Optional invokeId) override; Protocols::InteractionModel::Status HandleStartAction(uint16_t actionId, Optional invokeId) override; - Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId) override; + Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId) override; Protocols::InteractionModel::Status HandleStopAction(uint16_t actionId, Optional invokeId) override; Protocols::InteractionModel::Status HandlePauseAction(uint16_t actionId, Optional invokeId) override; - Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId) override; + Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId) override; Protocols::InteractionModel::Status HandleResumeAction(uint16_t actionId, Optional invokeId) override; Protocols::InteractionModel::Status HandleEnableAction(uint16_t actionId, Optional invokeId) override; - Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId) override; + Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId) override; Protocols::InteractionModel::Status HandleDisableAction(uint16_t actionId, Optional invokeId) override; - Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId) override; + Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId) override; }; } // namespace Actions } // namespace Clusters diff --git a/examples/bridge-app/asr/src/bridged-actions-stub.cpp b/examples/bridge-app/asr/src/bridged-actions-stub.cpp old mode 100755 new mode 100644 index d6289a733f2259..84dca65f832107 --- a/examples/bridge-app/asr/src/bridged-actions-stub.cpp +++ b/examples/bridge-app/asr/src/bridged-actions-stub.cpp @@ -95,7 +95,7 @@ CHIP_ERROR ActionsAttrAccess::Read(const ConcreteReadAttributePath & aPath, Attr } } // anonymous namespace -//void MatterActionsPluginServerInitCallback(void) +// void MatterActionsPluginServerInitCallback(void) //{ -// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); -//} +// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); +// } diff --git a/examples/bridge-app/linux/bridged-actions-stub.cpp b/examples/bridge-app/linux/bridged-actions-stub.cpp index cca8d38d809c94..0eff1e7b6d05bc 100644 --- a/examples/bridge-app/linux/bridged-actions-stub.cpp +++ b/examples/bridge-app/linux/bridged-actions-stub.cpp @@ -131,7 +131,7 @@ CHIP_ERROR ActionsAttrAccess::Read(const ConcreteReadAttributePath & aPath, Attr } } // anonymous namespace -//void MatterActionsPluginServerInitCallback() +// void MatterActionsPluginServerInitCallback() //{ -// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); -//} +// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); +// } diff --git a/examples/bridge-app/telink/src/DeviceCallbacks.cpp b/examples/bridge-app/telink/src/DeviceCallbacks.cpp index 65218c68295bba..8511d7047dfb0a 100644 --- a/examples/bridge-app/telink/src/DeviceCallbacks.cpp +++ b/examples/bridge-app/telink/src/DeviceCallbacks.cpp @@ -99,7 +99,7 @@ CHIP_ERROR ActionsAttrAccess::Read(const ConcreteReadAttributePath & aPath, Attr } } // anonymous namespace -//void MatterActionsPluginServerInitCallback(void) +// void MatterActionsPluginServerInitCallback(void) //{ -// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); -//} +// AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess); +// } diff --git a/src/app/clusters/actions-server/actions-server.h b/src/app/clusters/actions-server/actions-server.h index 03bdb38754e08f..f702069cfa68b7 100644 --- a/src/app/clusters/actions-server/actions-server.h +++ b/src/app/clusters/actions-server/actions-server.h @@ -138,7 +138,8 @@ class Delegate * @param transitionTime The time for transition from the current state to the new state. * @return Returns a Success if an action took place successfully otherwise, suitable error. */ - virtual Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime, Optional invokeId); + virtual Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime, + Optional invokeId); /** * When a StartAction command is recieved, the commencement of an action on the involved endpoints shall trigger. Afterwards, @@ -158,7 +159,8 @@ class Delegate * @param duration The time for which an action shall be in start state. * @return Returns a Success if an action took place successfully otherwise, suitable error. */ - virtual Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId); + virtual Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId); /** * When a StopAction command is recieved, the ongoing action on the involved endpoints shall stop. Afterwards, the action’s @@ -187,7 +189,8 @@ class Delegate * @param duration The time for which an action shall be in pause state. * @return Returns a Success if an action took place successfully otherwise, suitable error. */ - virtual Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId); + virtual Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId); /** * When a ResumeAction command is recieved, the previously paused action shall resume and SHALL change the action’s state to @@ -216,7 +219,8 @@ class Delegate * @param duration The time for which an action shall be in active state. * @return Returns a Success if an action took place successfully otherwise, suitable error. */ - virtual Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId); + virtual Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId); /** * When a DisableAction command is recieved, it disables a certain action or automation, and SHALL change the action’s state to @@ -236,7 +240,8 @@ class Delegate * @param duration The time for which an action shall be in disable state. * @return Returns a Success if an action took place successfully otherwise, suitable error. */ - virtual Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration, Optional invokeId); + virtual Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration, + Optional invokeId); }; } // namespace Actions