aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/offer_messages.cc
diff options
context:
space:
mode:
authorJordan Bayles <jophba@chromium.org>2021-06-07 08:18:12 -0700
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-06-07 17:40:40 +0000
commit8566e3b6ac34400270869708cce673bcc12686a1 (patch)
tree4ed0c2fd50abeee42c3bf620b5cafbf3c7b88bb8 /cast/streaming/offer_messages.cc
parentaccf7fd700bff19266b17eb271e3c805a3230352 (diff)
downloadopenscreen-8566e3b6ac34400270869708cce673bcc12686a1.tar.gz
[Hotfix] readd deprecated declaration
This patch fixes the Chrome build by readding a deprecated declaration. TBR=rwkeane@google.com Change-Id: Ibb506764ac47dde09e56b1cb1ddf7f31f4cd2dd6 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2944213 Reviewed-by: Jordan Bayles <jophba@chromium.org> Reviewed-by: Ryan Keane <rwkeane@google.com> Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/streaming/offer_messages.cc')
-rw-r--r--cast/streaming/offer_messages.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cast/streaming/offer_messages.cc b/cast/streaming/offer_messages.cc
index f438d9be..ad88e82e 100644
--- a/cast/streaming/offer_messages.cc
+++ b/cast/streaming/offer_messages.cc
@@ -315,6 +315,11 @@ bool VideoStream::IsValid() const {
}
// static
+Error Offer::Parse(const Json::Value& root, Offer* out) {
+ return TryParse(root, out);
+}
+
+// static
Error Offer::TryParse(const Json::Value& root, Offer* out) {
if (!root.isObject()) {
return Error(Error::Code::kJsonParseError, "null offer");