USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
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 { namespace log {
17 
23 typedef std::function<void(const uhd::log::logging_info&)> log_fn_t;
24 
30 UHD_API void add_logger(const std::string& key, log_fn_t logger_fn);
31 }} /* namespace uhd::log */
32 
33 #endif /* INCLUDED_UHD_UTILS_LOG_ADD_HPP */
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition: log_add.hpp:23
Definition: build_info.hpp:13
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
#define UHD_API
Definition: config.h:68