USRP Hardware Driver and USRP Manual
Version: 4.1.0.3
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
#pragma once
10
11
#include <
uhd/config.hpp
>
12
#include <
uhd/utils/log.hpp
>
13
#include <functional>
14
15
namespace
uhd
{
namespace
log {
16
22
typedef
std::function<void(
const
uhd::log::logging_info
&)>
log_fn_t
;
23
29
UHD_API
void
add_logger
(
const
std::string& key,
log_fn_t
logger_fn);
30
}}
/* namespace uhd::log */
UHD_API
#define UHD_API
Definition:
config.h:70
config.hpp
log.hpp
uhd::log::log_fn_t
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition:
log_add.hpp:22
uhd::log::add_logger
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
uhd
Definition:
build_info.hpp:12
uhd::log::logging_info
Definition:
log.hpp:131
include
uhd
utils
log_add.hpp
Generated by
1.9.3