Skip to content

Commit

Permalink
Fixing style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pgregorr-amazon committed May 16, 2024
1 parent b67b57c commit 82b0cb1
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,31 @@ class CastingPlayer;
* @brief Called when the User Directed Commissioning (UDC) process succeeds or fails.
* @param[in] err For success, called back with CHIP_NO_ERROR. For failure, called back with an error.
* @param[in] castingPlayer For success, called back with a CastingPlayer *. For failure, called back with a nullptr.
*/
*/
using ConnectCallback = std::function<void(CHIP_ERROR err, CastingPlayer * castingPlayer)>;

/**
* @brief Called when a Commissioner Declaration UDC message has been received.
* @param[in] source The source of the Commissioner Declaration message.
* @param[in] cd The Commissioner Declaration message.
*/
using CommissionerDeclarationCallback = std::function<void(const chip::Transport::PeerAddress & source, chip::Protocols::UserDirectedCommissioning::CommissionerDeclaration cd)>;
* @brief Called when a Commissioner Declaration UDC message has been received.
* @param[in] source The source of the Commissioner Declaration message.
* @param[in] cd The Commissioner Declaration message.
*/
using CommissionerDeclarationCallback = std::function<void(const chip::Transport::PeerAddress & source,
chip::Protocols::UserDirectedCommissioning::CommissionerDeclaration cd)>;

/**
* @brief A container class for User Directed Commissioning (UDC) callbacks.
*/
class ConnectionCallbacks
{
public:
/**
* The callback called when the connection process has ended, regardless of whether it was successful or not.
*/
ConnectCallback mOnConnectionComplete = nullptr;
/**
* The callback called when the Commissionee receives a CommissionerDeclaration message from the Commissioner.
*/
CommissionerDeclarationCallback mCommissionerDeclarationCallback = nullptr;
public:
/**
* The callback called when the connection process has ended, regardless of whether it was successful or not.
*/
ConnectCallback mOnConnectionComplete = nullptr;
/**
* The callback called when the Commissionee receives a CommissionerDeclaration message from the Commissioner.
*/
CommissionerDeclarationCallback mCommissionerDeclarationCallback = nullptr;
};

}; // namespace core
Expand Down

0 comments on commit 82b0cb1

Please sign in to comment.