blob: 177bedfdb5506c2727682fd80811d71f18b82af1 [file] [log] [blame]
/*
*
* Copyright (c) 2022 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @brief CastingUtils carries several utility functions that can be used
* with Linux implementations of the TV Casting app.
*/
#pragma once
#include "CastingServer.h"
#include "TargetEndpointInfo.h"
#include "TargetVideoPlayerInfo.h"
constexpr uint32_t kCommissionerDiscoveryTimeoutInMs = 5 * 1000;
CHIP_ERROR ProcessClusterCommand(int argc, char ** argv);
CHIP_ERROR DiscoverCommissioners();
CHIP_ERROR RequestCommissioning(int index);
void PrepareForCommissioning(const chip::Dnssd::DiscoveredNodeData * selectedCommissioner = nullptr);
void InitCommissioningFlow(intptr_t commandArg);
void HandleCommissioningCompleteCallback(CHIP_ERROR err);
void LaunchURLResponseCallback(CHIP_ERROR err);
#if CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT
void HandleUDCSendExpiration(chip::System::Layer * aSystemLayer, void * context);
#endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT
void PrintFabrics();