USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-4+b1satnogs1
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 */
UHD_API
#define UHD_API
Definition:
config.h:68
config.hpp
log.hpp
uhd::log::log_fn_t
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition:
log_add.hpp:23
uhd::log::add_logger
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
uhd
Definition:
build_info.hpp:13
uhd::log::logging_info
Definition:
log.hpp:120
include
uhd
utils
log_add.hpp
Generated by
1.9.1