#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "interface.h"
+#include <unistd.h>
+#include "emufs.h"
-typedef struct param_cte_t {
- int ID;
- char num_fac[9];
- char fecha_emision[9];
- char fecha_vto[9];
- char num_remito[9];
- char estado[2];
- char FP[2];
- char Por_DoI[6];
- char num_cta_cte[6];
- char num_cheque[19];
- int texto; /*referencia al texto en otro archivo.*/
-};
+typedef struct block_free_t{
+ int block;
+ int free_space;
+}BLOCK_FREE_T;
+typedef struct block_reg_t{
+ int block;
+ long int id_reg;
+}BLOCK_REG_T;
-int leer_bloque(int ID, void *, unsigned long tam);
+int leer_registro(EMUFS *, int , void *, unsigned long);
-int leer_registro(int ID, void *, unsigned long tam);
+int leer_bloque(EMUFS *, int , void *);
-int grabar_registro(int ID, void *, unsigned long tam);
+int grabar_registro(EMUFS *, void *, unsigned long );
-int existe_registro(int ID);
+int existe_registro(EMUFS *, int);
-int buscar_registro(int ID);
+int buscar_registro(EMUFS *, int);
-int copiar(struct param_cte_t dato, param_cte_t** str);
+int buscar_lugar(EMUFS *, unsigned long , int *);
+
+int get_id(EMUFS *);
+
+int grabar_bloque(EMUFS *, void *, int);
+
+int borrar_registro(EMUFS*, int, int);
#endif