#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <pmt/pmt.h>
#include <gnuradio/io_signature.h>
#include "test_msg_impl.h"

namespace gr {
  namespace custommod {

    test_msg::sptr
    test_msg::make()
    {
      return gnuradio::get_initial_sptr
        (new test_msg_impl());
    }

    /*
     * The private constructor
     */
    test_msg_impl::test_msg_impl()
      : gr::block("test_msg",
              gr::io_signature::make(0,0, sizeof(int)),
              gr::io_signature::make(0,0, sizeof(int)))
    {
      message_port_register_in(pmt::mp("in"));
      set_msg_handler(pmt::mp("in"),boost::bind(&test_msg_impl::msg_handler_method,this,_1));
    }

    /*
     * Our virtual destructor.
     */
    test_msg_impl::~test_msg_impl()
    {
    }

    void test_msg_impl::msg_handler_method(pmt::pmt_t msg){
      //do nothing
    }
  } /* namespace custommod */
} /* namespace gr */
