USRP Hardware Driver and USRP Manual  Version: 003.010.002.HEAD-0-gbd6e21dc
UHD and USRP Manual
uhd::msg Namespace Reference

Classes

class  _msg
 Internal message object (called by UHD_MSG macro) More...
 

Typedefs

typedef void(* handler_t) (type_t, const std::string &)
 Typedef for a user-registered message handler. More...
 

Enumerations

enum  type_t { status = 's', warning = 'w', error = 'e', fastpath = 'f' }
 Possible message types. More...
 

Functions

UHD_API void register_handler (const handler_t &handler)
 

Typedef Documentation

◆ handler_t

typedef void(* uhd::msg::handler_t) (type_t, const std::string &)

Typedef for a user-registered message handler.

Enumeration Type Documentation

◆ type_t

Possible message types.

Enumerator
status 
warning 
error 
fastpath 

Function Documentation

◆ register_handler()

UHD_API void uhd::msg::register_handler ( const handler_t handler)

Register the handler for uhd system messages. Only one handler can be registered at once. This replaces the default std::cout/cerr handler.

Parameters
handlera new handler callback function