diff options
author | jcorgan | 2009-07-26 20:01:02 +0000 |
---|---|---|
committer | jcorgan | 2009-07-26 20:01:02 +0000 |
commit | 2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3 (patch) | |
tree | d646b7851ed0ea3015c3480609d03d5589ebd60d /mblock/src/lib/mb_port.cc | |
parent | 970d850297cf945943528557127db2cd327c3f3c (diff) | |
download | gnuradio-2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3.tar.gz gnuradio-2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3.tar.bz2 gnuradio-2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3.zip |
Merged r11491:11494 from jcorgan/pmt into trunk.
Moves pmt types functions into pmt:: from gruel::
Trunk passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11495 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'mblock/src/lib/mb_port.cc')
-rw-r--r-- | mblock/src/lib/mb_port.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mblock/src/lib/mb_port.cc b/mblock/src/lib/mb_port.cc index abf909fd3..a26a2c414 100644 --- a/mblock/src/lib/mb_port.cc +++ b/mblock/src/lib/mb_port.cc @@ -26,16 +26,18 @@ #include <mblock/port.h> #include <mblock/protocol_class.h> +using namespace pmt; + mb_port::mb_port(mb_mblock *mblock, const std::string &port_name, const std::string &protocol_class_name, bool conjugated, mb_port::port_type_t port_type) - : d_port_name(port_name), d_port_symbol(gruel::pmt_intern(port_name)), + : d_port_name(port_name), d_port_symbol(pmt_intern(port_name)), d_conjugated(conjugated), d_port_type(port_type), d_mblock(mblock) { - gruel::pmt_t pc = mb_protocol_class_lookup(gruel::pmt_intern(protocol_class_name)); + pmt_t pc = mb_protocol_class_lookup(pmt_intern(protocol_class_name)); if (pmt_is_null(pc)){ throw std::runtime_error("mb_port: unknown protocol class '" + protocol_class_name + "'"); @@ -48,7 +50,7 @@ mb_port::~mb_port() // nop } -gruel::pmt_t +pmt_t mb_port::incoming_message_set() const { if (!conjugated()) @@ -57,7 +59,7 @@ mb_port::incoming_message_set() const return mb_protocol_class_outgoing(protocol_class()); } -gruel::pmt_t +pmt_t mb_port::outgoing_message_set() const { if (!conjugated()) |