X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/c407055e1cc6ff4c435114091c3a5430486aa659..5df9bdcff11e0a64b9c05ca5294d6edf0a62603f:/emufs/fsc.h diff --git a/emufs/fsc.h b/emufs/fsc.h index aa2f704..e331b18 100644 --- a/emufs/fsc.h +++ b/emufs/fsc.h @@ -43,14 +43,20 @@ #define EMUFS_FSC_EXT ".fsc" typedef struct emufs_fsc_t { - unsigned long int n_Marker; - unsigned long int n_FreeSpace; -} EMUFS_FSC; + unsigned long int marker; + unsigned long int freespace; +}EMUFS_FSC; int emufs_fsc_crear(EMUFS*); int emufs_fsc_agregar(EMUFS *, EMUFS_BLOCK_ID, EMUFS_FREE); +int emufs_fsc_agregar_gap(EMUFS *, EMUFS_OFFSET, EMUFS_FREE); +int emufs_fsc_remove_gap(EMUFS *emu, EMUFS_OFFSET); +int emufs_fsc_actualizar_gap(EMUFS *, EMUFS_OFFSET, EMUFS_FREE); int emufs_fsc_actualizar(EMUFS *, EMUFS_BLOCK_ID, EMUFS_FREE); EMUFS_BLOCK_ID emufs_fsc_buscar_lugar(EMUFS *, EMUFS_FREE, EMUFS_FREE *); EMUFS_FREE emufs_fsc_get_fs(EMUFS *, EMUFS_BLOCK_ID); +/*Devuelve el total de espacio libre que queda en el .dat*/ +EMUFS_FREE emufs_fsc_get_total_fs(EMUFS *); +/*EMUFS_FREE emufs_fsc_get_max_min_fs(EMUFS *, int *, int *);*/ #endif /* _EMUFS_FSC_H */