Merged features/inband -r4812:5218 into trunk. This group of changes
[debian/gnuradio] / mblock / src / lib / mb_port.h
index 3c3e963687edbb23ce6e34e868967f7742441e58..3fdd25aff4ad31d66ed1d36aaaa3990aba91f6c9 100644 (file)
@@ -40,6 +40,7 @@ public:
 private:
 
   std::string          d_port_name;
+  pmt_t                        d_port_symbol;          // the port_name as a pmt symbol
   pmt_t                        d_protocol_class;
   bool                 d_conjugated;
   port_type_t          d_port_type;
@@ -58,6 +59,7 @@ protected:
 
 public:
   std::string  port_name() const { return d_port_name; }
+  pmt_t                port_symbol() const { return d_port_symbol; }
   pmt_t                protocol_class() const { return d_protocol_class; }
   bool          conjugated() const { return d_conjugated; }
   port_type_t  port_type() const { return d_port_type; }
@@ -77,9 +79,15 @@ public:
    */
   virtual void
   send(pmt_t signal,
-       pmt_t data = PMT_NIL,
-       pmt_t metadata = PMT_NIL,
+       pmt_t data = PMT_F,
+       pmt_t metadata = PMT_F,
        mb_pri_t priority = MB_PRI_DEFAULT) = 0;
+
+  /*
+   * \brief Invalidate any cached peer resolutions
+   * \implementation
+   */
+  virtual void invalidate_cache() = 0;
 };
 
 #endif /* INCLUDED_MB_PORT_H */