summaryrefslogtreecommitdiffstats
path: root/isdb-t/br-pb-SantaRita
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:47:01 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:51:51 +0100
commit5f5c34e8e0758f5f9480302d38345257ced3251e (patch)
treeb1c5ad4cad95669420370859eb8f94b51af0f3e0 /isdb-t/br-pb-SantaRita
parent54c854a4adf8697afc0dd9305af3455bde37b24c (diff)
downloaddtv-scan-tables-5f5c34e8e0758f5f9480302d38345257ced3251e.tar.gz
New Upstream Snapshot (commit cfc2975)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
#333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef	DATATYPES_H
#define	DATATYPES_H
#include <ncurses.h>
#include "machine_type.h"

/* INPUT DATATYPES */
// this is for the special keys
// i was not satisfied with how ncurses handled the function keys
typedef struct  _tKeyTab
{
        tInt16	retval;
        tBool	allowed_in_inputfield;
        tUInt8	seqlen;
        char seq[8];		// which sequence will be returned when this key is pressed
        char config[16];	// what string is written in the config-file
	char desc[64];
} tKeyTab;


/* OUTPUT DATATYPES */

typedef enum {COLOR_NONE,COLOR_BRACKETS,COLOR_INPUT,COLOR_CURSOR,COLOR_TEXT,COLOR_HEXFIELD,COLOR_DIFF,COLOR_HEADLINE,COLOR_HEADER,COLOR_MENUHOTKEY,COLOR_MENUNORMAL,COLOR_FRAME,COLOR_MENUACTIVE,COLOR_MENUHOTKEYACTIVE,COLOR_CURSORDIFF,UICOLORNUM} uicolors;
typedef struct _tColors
{
	short	fg;
	short	bg;
	int	attrs;
} tColors;
typedef struct _tOutput
{
	WINDOW*	win;
	tColors colors[UICOLORNUM];
	int	attrs[UICOLORNUM];
	void*	pKeyTab;
} tOutput;


/* BUFFER DATATYPES */
typedef	struct	_tChange
{
	tUInt64	pos;
	tUInt8	before;
	tUInt8	after;
} tChange;

typedef struct _tBuffer
{
	tBool	valid;
	tUInt8	data[BUFFERSIZE];
	tUInt64 filesize;	// the size of the actual file
	tUInt64 bufsize;	// the size of the buffer, in case some bytes are added at the end
	tUInt64 bufferpos;	// the offset from where this chunk has been read
	tBool	fresh;		// =1 if there is no data in this buffer
	tFptr	file;		// the file pointer
	char	filename[512];	// the file name
	tChange	changes[CHANGEBUFSIZE];
	tUInt32	changesnum;	// number of changes
	tBool	nibble;
	tUInt8	nexthex;
	tUInt64	changepos;
	tInt64	baseaddr;
} tBuffer;


/* CORRELATION DATATYPES */
typedef	enum {CORR_BEST_MATCH,CORR_LONGEST_MATCH,CORR_MIN_DIFF} corr_algorithms;
typedef struct _tCorrelation
{	
	tBool		correlated;
	corr_algorithms algorithm;
	tInt64		start_mindiff;
	tInt64		mindiff;
	tInt64		mindiffpos;
	tInt64		bestmatch;
	tInt64		bestmatchpos;
} tCorrelation;

/* MENU DATATYPES */
typedef struct _tMenuItem
{
	char menutext[64];
	tUInt16 x;
	tUInt16 y;
	char hotkey;
} tMenuItem;

typedef struct _tMenu
{
	tMenuItem MenuItems[64];
	int menuitemnum;
	int menuitemactive;
} tMenu;

/* SEARCH DATATYPES */
typedef	struct	_tSearch
{
	char	writelogfilename[64];
	char	readlogfilename[64];
	tBool	writesearchlog;
	tBool	readsearchlog;
	tBool	forwardnotbackward;
	char	searchstring[32];
	tInt16	searchlen;
	tInt64	occurancesfound;
	tInt64	lastoccurance;
	tInt64	lastsearchlogpos;
} tSearch;


/* MARKER DATATYPES */
#define	NUMMARKERS	10

typedef struct	_tMarkers
{
	char	relative[NUMMARKERS];
	tUInt64	cursorpos[NUMMARKERS];	
} tMarkers;



#endif