#include "tree.h"
#include "config.h"
#include "block_use_fs.h"
#include "create_file.h"
#define BLOCK_SIZE 512 /* Size for I/O and memory functions */
#define MAX_FILE 10
#define MAX_NET_UID 15

struct hda{
	int *_m_hda_1;
	int *_m_hda_2;
	int _innode[200];
	int _file_names[200];
} hda;

struct dev{
	int *hda_1;
	int *hda_2;
	int *fd;
	int *cd;
	int *com1;
	int *com2;
	int *lpt1;
	struct hda hda;
} dev;

struct usr{
	char *mem_p_ut;
	char *mem_p_usr_prg;
	int *innode_usr[50];
	int *file_names_usr[50];
} usr;

struct prg{
	char *mem_p_prg;
	int *prg_innode[50];
	int *prg_file_names[50];
} prg;

struct man{
	int *file[MAX_FILE];
	char *mem_p_man;
	int *man_innode[100];
	int *man_file_names[100];
} man;

struct mem{
	char *mem_P_xm[BLOCK_SIZE];
	char *mem_p;
} mem;

struct net{
	int *net_uid[MAX_NET_UID];
	char *address[30];
	char *net_passwd[15];
	int guid[15];
	int server[5];
	int *sbitmask;
	int *ubitmask;
	struct tree tree;
} net;

struct directory{
	struct dev dev;
	struct usr usr;
	struct prg prg;
	struct man man;
	struct mem mem;
	struct net net;
} DIR;
