Skip to content

Commit

Permalink
uhd: add null msg handler and expose to python
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Koslowski committed May 12, 2016
1 parent 6c2851d commit 453a13a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gr-uhd/swig/uhd_swig.i
Expand Up @@ -68,6 +68,14 @@

%include <uhd/utils/pimpl.hpp>

%{
#include <uhd/utils/msg.hpp>
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 <uhd/utils/msg.hpp>

%ignore uhd::dict::operator[]; //ignore warnings about %extend
%include <uhd/types/dict.hpp>
%template(string_string_dict_t) uhd::dict<std::string, std::string>; //define after dict
Expand Down

0 comments on commit 453a13a

Please sign in to comment.