Branch data Line data Source code
1 : : /* 2 : : * Copyright (C) 2026 by Thun Lu. All rights reserved. 3 : : * Author: Thun Lu <thun.lu@zohomail.cn> 4 : : * Repo: https://github.com/thun-res/vlink 5 : : * _ __ __ _ __ 6 : : * | | / / / / (_) ____ / /__ 7 : : * | | / / / / / / / __ \ / //_/ 8 : : * | |/ / / /___ / / / / / / / ,< 9 : : * |___/ /_____/ /_/ /_/ /_/ /_/|_| 10 : : * 11 : : * Licensed under the Apache License, Version 2.0 (the "License"); 12 : : * you may not use this file except in compliance with the License. 13 : : * You may obtain a copy of the License at 14 : : * 15 : : * http://www.apache.org/licenses/LICENSE-2.0 16 : : * 17 : : * Unless required by applicable law or agreed to in writing, software 18 : : * distributed under the License is distributed on an "AS IS" BASIS, 19 : : * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 : : * See the License for the specific language governing permissions and 21 : : * limitations under the License. 22 : : */ 23 : : 24 : : #include "./impl/subscriber_impl.h" 25 : : 26 : : namespace vlink { 27 : : 28 : : // SubscriberImpl 29 : 341 : SubscriberImpl::~SubscriberImpl() = default; 30 : : 31 : 1 : bool SubscriberImpl::listen(IntraMsgCallback&& callback) { 32 : : (void)callback; 33 : : 34 [ + - + - ]: 2 : VLOG_W("Function [listen(IntraMsgCallback&&)] is not supported."); 35 : : 36 : 1 : return false; 37 : : } 38 : : 39 : 341 : SubscriberImpl::SubscriberImpl() : NodeImpl(kSubscriber) {} 40 : : 41 : 3 : void SubscriberImpl::set_latency_and_lost_enabled(bool enable) { (void)enable; } 42 : : 43 : 4 : bool SubscriberImpl::is_latency_and_lost_enabled() const { return false; } 44 : : 45 : 3 : int64_t SubscriberImpl::get_latency() const { return 0; } 46 : : 47 : 2 : SampleLostInfo SubscriberImpl::get_lost() const { return SampleLostInfo(); } 48 : : 49 : : } // namespace vlink