#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h> /* For time() and difftime() */
#include <ctype.h> /* For toupper() */
#ifndef MAXPATHLEN
#include <sys/param.h>
#endif /* MAXPATHLEN */
#include "xvmpeg.xbm"
#include "xvmpeg_mask.xbm"

#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif

#ifndef NAME_MAX
#define NAME_MAX 255 /* Is this portable ? */
#endif 

#define XVMPEG_NAME "xvmpeg v0.1a"

typedef struct {
  Frame		frame;
  Panel 	panel;
  Panel_item 	open, 
  		anim, 
  		about,
  		options, 
  		dither;
  char 		f_name[PATH_MAX+NAME_MAX];
  int 		init_height, 
  		init_width;
} Main_win;

#define OPTIONS_KEY	0
#define DITHER_KEY	1
#define PANEL_KEY	2
#define F_NAME_KEY	3
#define INIT_HEIGHT_KEY	4
#define INIT_WIDTH_KEY	5
#define FRAME_KEY	6
