Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jadhavrohit924 committed Oct 4, 2024
1 parent 5d38b55 commit e1adad4
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,22 @@ class ActionsDelegateImpl : public Delegate
CHIP_ERROR FindActionIdInActionList(uint16_t actionId) override;

Protocols::InteractionModel::Status HandleInstantAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime,
Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleStartAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleStopAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandlePauseAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleResumeAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleEnableAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleDisableAction(uint16_t actionId, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration, Optional<uint32_t> invokeId) override;
Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId) override;
};
} // namespace Actions
} // namespace Clusters
Expand Down
6 changes: 3 additions & 3 deletions examples/bridge-app/asr/src/bridged-actions-stub.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
6 changes: 3 additions & 3 deletions examples/bridge-app/linux/bridged-actions-stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
6 changes: 3 additions & 3 deletions examples/bridge-app/telink/src/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
8 changes: 4 additions & 4 deletions examples/placeholder/linux/src/bridged-actions-stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CHIP_ERROR ActionsAttrAccess::Read(const ConcreteReadAttributePath & aPath, Attr
}
} // anonymous namespace

void MatterActionsPluginServerInitCallback(void)
{
chip::app::AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess);
}
//void MatterActionsPluginServerInitCallback(void)
//{
// chip::app::AttributeAccessInterfaceRegistry::Instance().Register(&gAttrAccess);
//}
15 changes: 10 additions & 5 deletions src/app/clusters/actions-server/actions-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t> invokeId);
virtual Protocols::InteractionModel::Status HandleInstantActionWithTransition(uint16_t actionId, uint16_t transitionTime,
Optional<uint32_t> invokeId);

/**
* When a StartAction command is recieved, the commencement of an action on the involved endpoints shall trigger. Afterwards,
Expand All @@ -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<uint32_t> invokeId);
virtual Protocols::InteractionModel::Status HandleStartActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId);

/**
* When a StopAction command is recieved, the ongoing action on the involved endpoints shall stop. Afterwards, the action’s
Expand Down Expand Up @@ -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<uint32_t> invokeId);
virtual Protocols::InteractionModel::Status HandlePauseActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId);

/**
* When a ResumeAction command is recieved, the previously paused action shall resume and SHALL change the action’s state to
Expand Down Expand Up @@ -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<uint32_t> invokeId);
virtual Protocols::InteractionModel::Status HandleEnableActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId);

/**
* When a DisableAction command is recieved, it disables a certain action or automation, and SHALL change the action’s state to
Expand All @@ -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<uint32_t> invokeId);
virtual Protocols::InteractionModel::Status HandleDisableActionWithDuration(uint16_t actionId, uint32_t duration,
Optional<uint32_t> invokeId);
};

} // namespace Actions
Expand Down

0 comments on commit e1adad4

Please sign in to comment.