#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "interface.h"
+#include "emufs.h"
-int leer_bloque(int ID, void *, unsigned long tam);
-int leer_registro(int ID, void *, unsigned long tam);
+typedef struct block_free_t{
+ int block;
+ int free_space;
+}BLOCK_FREE_T;
-int grabar_registro(int ID, void *, unsigned long tam);
+typedef struct block_reg_t{
+ int block;
+ int id_reg;
+}BLOCK_REG_T;
-int existe_registro(int ID);
+int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam);
-int buscar_registro(int ID);
+int leer_bloque(EMUFS *emu, int ID, void *);
+int grabar_registro(EMUFS *emu, void *, unsigned long tam);
+
+int existe_registro(EMUFS *emu, int ID);
+
+int buscar_registro(EMUFS *emu, int ID);
+
+int buscar_lugar(EMUFS *emu, unsigned long tam, int *fs);
+
+int get_id(EMUFS *emu);
+
+int grabar_bloque(EMUFS *emu, void *ptr, int num);
#endif