1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "osp/public/service_publisher.h" 6 7 namespace openscreen { 8 namespace osp { 9 10 ServicePublisherError::ServicePublisherError() = default; ServicePublisherError(Code error,const std::string & message)11ServicePublisherError::ServicePublisherError(Code error, 12 const std::string& message) 13 : error(error), message(message) {} 14 ServicePublisherError::ServicePublisherError( 15 const ServicePublisherError& other) = default; 16 ServicePublisherError::~ServicePublisherError() = default; 17 18 ServicePublisherError& ServicePublisherError::operator=( 19 const ServicePublisherError& other) = default; 20 21 ServicePublisher::Metrics::Metrics() = default; 22 ServicePublisher::Metrics::~Metrics() = default; 23 24 ServicePublisher::Config::Config() = default; 25 ServicePublisher::Config::~Config() = default; 26 ServicePublisher(Observer * observer)27ServicePublisher::ServicePublisher(Observer* observer) 28 : state_(State::kStopped), observer_(observer) {} 29 ServicePublisher::~ServicePublisher() = default; 30 31 } // namespace osp 32 } // namespace openscreen 33