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_listener.h" 6 7 namespace openscreen { 8 namespace osp { 9 10 ServiceListenerError::ServiceListenerError() = default; ServiceListenerError(Code error,const std::string & message)11ServiceListenerError::ServiceListenerError(Code error, 12 const std::string& message) 13 : error(error), message(message) {} 14 ServiceListenerError::ServiceListenerError(const ServiceListenerError& other) = 15 default; 16 ServiceListenerError::~ServiceListenerError() = default; 17 18 ServiceListenerError& ServiceListenerError::operator=( 19 const ServiceListenerError& other) = default; 20 21 ServiceListener::Metrics::Metrics() = default; 22 ServiceListener::Metrics::~Metrics() = default; 23 ServiceListener()24ServiceListener::ServiceListener() : state_(State::kStopped) {} 25 ServiceListener::~ServiceListener() = default; 26 27 } // namespace osp 28 } // namespace openscreen 29