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 committed May 3, 2022
1 parent 10183f4 commit 4de7657
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/tv-casting-app/linux/CastingShellCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static CHIP_ERROR CastingHandler(int argc, char ** argv)
char * eptr;
chip::NodeId nodeId = (chip::NodeId) strtoull(argv[1], &eptr, 10);
chip::FabricIndex fabricIndex = (chip::FabricIndex) strtol(argv[2], &eptr, 10);
if(!CastingServer::GetInstance()->isServerInitialized())
if (!CastingServer::GetInstance()->isServerInitialized())
{
DeviceLayer::PersistedStorage::KeyValueStoreMgrImpl().Init(CHIP_CONFIG_KVS_PATH);
}
Expand Down Expand Up @@ -164,7 +164,7 @@ static CHIP_ERROR CastingHandler(int argc, char ** argv)
streamer_printf(streamer_get(), "ERROR - invalid fabric or video player nodeId not found\r\n");
return CHIP_ERROR_INVALID_ARGUMENT;
}
if(!CastingServer::GetInstance()->isServerInitialized())
if (!CastingServer::GetInstance()->isServerInitialized())
{
DeviceLayer::PersistedStorage::KeyValueStoreMgrImpl().Init(CHIP_CONFIG_KVS_PATH);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-casting-app/linux/CastingUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CHIP_ERROR RequestCommissioning(int index)
*/
void PrepareForCommissioning(const Dnssd::DiscoveredNodeData * selectedCommissioner)
{
if(!CastingServer::GetInstance()->isServerInitialized())
if (!CastingServer::GetInstance()->isServerInitialized())
{
DeviceLayer::PersistedStorage::KeyValueStoreMgrImpl().Init(CHIP_CONFIG_KVS_PATH);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-casting-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CHIP_ERROR ProcessClusterCommand(int argc, char ** argv)
{
if (!CastingServer::GetInstance()->GetTargetVideoPlayerInfo()->IsInitialized())
{
if(!CastingServer::GetInstance()->isServerInitialized())
if (!CastingServer::GetInstance()->isServerInitialized())
{
DeviceLayer::PersistedStorage::KeyValueStoreMgrImpl().Init(CHIP_CONFIG_KVS_PATH);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ class CastingServer
CHIP_ERROR TargetVideoPlayerInfoInit(chip::NodeId nodeId, chip::FabricIndex fabricIndex);
void ReadServerClusters(chip::EndpointId endpointId);
void ReadServerClustersForNode(chip::NodeId nodeId);
static void OnDescriptorReadSuccessResponse(void * context, const chip::app::DataModel::DecodableList<chip::ClusterId> & responseList);
static void OnDescriptorReadSuccessResponse(void * context,
const chip::app::DataModel::DecodableList<chip::ClusterId> & responseList);
static void OnDescriptorReadFailureResponse(void * context, CHIP_ERROR error);
CHIP_ERROR ContentLauncherLaunchURL(const char * contentUrl, const char * contentDisplayStr);
static void OnContentLauncherSuccessResponse(void * context, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType & response);
static void OnContentLauncherSuccessResponse(
void * context, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType & response);
static void OnContentLauncherFailureResponse(void * context, CHIP_ERROR error);
static void DeviceEventCallback(const chip::DeviceLayer::ChipDeviceEvent * event, intptr_t arg);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class TargetEndpointInfo
void PrintInfo();

private:
static constexpr size_t kMaxNumberOfClustersPerEndpoint = 10;
chip::ClusterId mClusters[kMaxNumberOfClustersPerEndpoint] = {};
static constexpr size_t kMaxNumberOfClustersPerEndpoint = 10;
chip::ClusterId mClusters[kMaxNumberOfClustersPerEndpoint] = {};
chip::EndpointId mEndpointId;
bool mInitialized = false;
};

0 comments on commit 4de7657

Please sign in to comment.