/* -*- c++ -*- */

%feature("autodoc", "1");		// generate python docstrings

%include "exception.i"
%import "gnuradio.i"			// the common stuff

%{
#include "gnuradio_swig_bug_workaround.h"	// mandatory bug fix
#include "mr_packet_sink.h"
#include <stdexcept>
%}

// ----------------------------------------------------------------
/*
 * First arg is the package prefix.
 * Second arg is the name of the class minus the prefix.
 *
 * This does some behind-the-scenes magic so we can
 * access howto_square_ff from python as howto.square_ff
 */
GR_SWIG_BLOCK_MAGIC(mr,packet_sink)

mr_packet_sink_sptr 
mr_make_packet_sink (const std::vector<unsigned char>& sync_vector,
		     gr_msg_queue_sptr target_queue,
		     int payload_len = -1,				// -1 -> use default
			 int threshold = -1					// -1 -> use default
		     );

class mr_packet_sink : public gr_sync_block
{
 protected:
  mr_packet_sink (const std::vector<unsigned char>& sync_vector,
				gr_msg_queue_sptr target_queue,
				int payload_len,
				int threshold);
 public:
  ~mr_packet_sink ();
};

