/***
 *** parse_modeline.h
 *** Written by Koen Gadeyne (kmg@barco.be)
 ***
 ***/

#ifndef _PARSE_MODELINE_H
#define _PARSE_MODELINE_H

#include "misc.h"
#include "modedata.h"

extern char ConfigFile[];

#define MAX_ATTRIBS         6
#define ATTRIB_LEN          11

/*
 * Supported Attributes
 */

#define NUM_ATTRIBS      7

#define ATTR_FONT        0
#define ATTR_PHSYNC      1
#define ATTR_NHSYNC      2
#define ATTR_PVSYNC      3
#define ATTR_NVSYNC      4
#define ATTR_INTERLACE   5
#define ATTR_DBLSCAN     6

#define ATTRIB_STRINGS   { "FONT" , "+HSYNC" , "-HSYNC" , "+VSYNC" , "-VSYNC" , "INTERLACE" , "DOUBLESCAN" }

int parsemodeline(char* modeline, modestruct* mode);

#endif

