-void
-Port::cycle_start (nframes_t nframes)
-{
- _currently_in_cycle = true;
- _nframes_this_cycle = nframes;
-}
-
-void
-Port::cycle_end ()
-{
- _currently_in_cycle = false;
- _nframes_this_cycle = 0;
-}
-
-XMLNode&
-Port::get_state () const
-{
- XMLNode* node = new XMLNode ("MIDI-port");
- node->add_property ("tag", _tagname);
- node->add_property ("device", _devname);
- node->add_property ("mode", PortFactory::mode_to_string (_mode));
- node->add_property ("type", get_typestring());
-
- return *node;
-}
-
-void
-Port::set_state (const XMLNode& /*node*/)
-{
- // relax
-}
-
-void
-Port::gtk_read_callback (void *ptr, int /*fd*/, int /*cond*/)
-{
- byte buf[64];
- ((Port *)ptr)->read (buf, sizeof (buf));
-}
-
-void
-Port::write_callback (byte *msg, unsigned int len, void *ptr)
-{
- ((Port *)ptr)->write (msg, len, 0);
-}
-