Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
- index 513c1da..fdd6416 100644
- --- a/gr-uhd/swig/uhd_swig.i
- +++ b/gr-uhd/swig/uhd_swig.i
- @@ -134,3 +134,22 @@ std::string get_version_string(void){
- std::string get_version_string(void);
- #endif /* GR_HAVE_UHD */
- +
- +////////////////////////////////////////////////////////////////////////
- +// hook for disabling user messages
- +////////////////////////////////////////////////////////////////////////
- +
- +%{
- +
- +#include <uhd/utils/msg.hpp>
- +
- +void msg_handler_nop(uhd::msg::type_t, const std::string &){}
- +
- +static void disable_msgs(void)
- +{
- + uhd::msg::register_handler(&msg_handler_nop);
- +}
- +
- +%}
- +
- +static void disable_msgs(void);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement