From 2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Sun, 26 Jul 2009 20:01:02 +0000 Subject: 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 --- mblock/src/lib/mb_port.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mblock/src/lib/mb_port.cc') 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 #include +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()) -- cgit