*----------------------------------------------------------------------------
* Creado: vie abr 9 16:17:50 ART 2004
* Autores: Nicolás Dimov <sagardua@uolsinectis.com.ar>
+ * Leandro Lucarella <llucare@fi.uba.ar>
*----------------------------------------------------------------------------
*
* $Id$
#include "emufs.h"
-int emufs_fsc_agregar(EMUFS *, int, int);
-
-int emufs_fsc_actualizar(EMUFS *, int, int);
-
-int emufs_fsc_buscar_lugar(EMUFS *, unsigned long, int *);
-
-int emufs_fsc_get_fs(EMUFS *, int);
+#define EMUFS_FSC_EXT ".fsc"
+
+typedef struct emufs_fsc_t {
+ 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 *);
#endif /* _EMUFS_FSC_H */