>From 222df48d16d03447ef7e6452c046e349cbc0936c Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski Date: Thu, 2 Jul 2015 16:42:35 +0200 Subject: [PATCH] uhd: add null msg handler and expose to python --- gr-uhd/swig/uhd_swig.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index 108f544..6c73ba3 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -68,6 +68,14 @@ %include +%{ +#include +static void null_msg_handler(uhd::msg::type_t type, const std::string &msg){} +%} +%constant void null_msg_handler(uhd::msg::type_t type, const std::string &msg); +%rename(register_msg_handler) register_handler(const handler_t &handler); +%include + %ignore uhd::dict::operator[]; //ignore warnings about %extend %include %template(string_string_dict_t) uhd::dict; //define after dict -- 1.9.3