X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/44e29ffea53b9da70e6b5e16f96aa0231540dd87..216d7789be2a892d65edc6d90d91ea03131351d5:/tipo3/param_cte.h diff --git a/tipo3/param_cte.h b/tipo3/param_cte.h index 136b8ec..de2e423 100644 --- a/tipo3/param_cte.h +++ b/tipo3/param_cte.h @@ -3,16 +3,31 @@ #include #include #include -#include "interface.h" +#include "emufs.h" -int leer_bloque(int ID, void *, unsigned long tam); +typedef struct block_free_t{ + int block; + int free_space; +}BLOCK_FREE_T; -int leer_registro(int ID, void *, unsigned long tam); +typedef struct block_reg_t{ + int block; + long int id_reg; +}BLOCK_REG_T; -int grabar_registro(int ID, void *, unsigned long tam); +int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam); -int existe_registro(int ID); +int leer_bloque(EMUFS *emu, int ID, void *); -int buscar_registro(int ID); +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