USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-ga1b5c4ae
UHD and USRP Manual
log_add.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2017 Ettus Research (National Instruments Corp.)
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 // Note: Including this file requires C++11 features enabled.
8 
9 #ifndef INCLUDED_UHD_UTILS_LOG_ADD_HPP
10 #define INCLUDED_UHD_UTILS_LOG_ADD_HPP
11 
12 #include <uhd/config.hpp>
13 #include <uhd/utils/log.hpp>
14 #include <functional>
15 
16 namespace uhd {
17  namespace log {
18 
24  typedef std::function<void(const uhd::log::logging_info&)> log_fn_t ;
25 
31  UHD_API void add_logger(const std::string &key, log_fn_t logger_fn);
32  }
33 } /* namespace uhd::log */
34 
35 #endif /* INCLUDED_UHD_UTILS_LOG_ADD_HPP */
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition: log_add.hpp:24
Definition: build_info.hpp:14
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
#define UHD_API
Definition: config.h:63