/*
   nop.c
*/

#include "videoport.h"

int main(int argc, char **argv)
{
  videoport p;
  int direction = (tolower(argv[1][1]) == 'v') ?
    VIDEOPORT_DIRECTION_VM : VIDEOPORT_DIRECTION_MV;
  
  NC(p = videoport_open(direction, 20, 0));
  
  for(;;)
    {
      videofield *f;
      videoport_wait_for_space_or_data(p);
      f = videoport_get_one_field(p);
      assert(f);

      /* do something with data/space! */

      videoport_put_one_field(p, f);
    }
}

  

