#ifndef _GlobHdr_H
#define _GlobHdr_H

#define IGNORE(x) x = x;
#include "IStream.h"
#include "TimLib:SeqHdr.h"

#define max_streams	10

#define glb_flag_callback	0x00000001
#define glb_flag_icymeta	0x00000002
#define glb_flag_udpmeta	0x00000004
#define CPU_SLOTS 8

struct GlobHdr
{
	void*			pw;
	const char*		pmodname;
	int				memarea;
	void*			memaddress;
	int				memsize;
	unsigned int	flags;
	struct
	{
		int	inputbufsize;  // in KBytes
		int	outputbufsize; // in KBytes
		int audiocastport;
		int buffering;     // in 1/2 seconds
	} cfg;
	SeqHdr*		seqdataptr;
	int64_t		HttpReadBytes;
	int         cpu[CPU_SLOTS];
	int         cpu_slot;
	int         cpu_max;
	int			save_8bit[10];
	IStream*	streamsptr[max_streams];
};

extern GlobHdr* Glb;

#endif
