You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CAST_RECEIVER_CHANNEL_MESSAGE_UTIL_H_
|
|
#define CAST_RECEIVER_CHANNEL_MESSAGE_UTIL_H_
|
|
|
|
#include "cast/common/channel/message_util.h"
|
|
#include "cast/common/channel/proto/cast_channel.pb.h"
|
|
#include "platform/base/error.h"
|
|
|
|
namespace openscreen {
|
|
namespace cast {
|
|
|
|
// Creates a message that responds to a previous app availability request with
|
|
// ID |request_id| which declares |app_id| to have availability of either
|
|
// available or unavailable respectively.
|
|
ErrorOr<::cast::channel::CastMessage> CreateAppAvailableResponse(
|
|
int request_id,
|
|
const std::string& sender_id,
|
|
const std::string& app_id);
|
|
ErrorOr<::cast::channel::CastMessage> CreateAppUnavailableResponse(
|
|
int request_id,
|
|
const std::string& sender_id,
|
|
const std::string& app_id);
|
|
|
|
} // namespace cast
|
|
} // namespace openscreen
|
|
|
|
#endif // CAST_RECEIVER_CHANNEL_MESSAGE_UTIL_H_
|