7 typedef enum {T1, T2, T3} EMUFS_TYPE;
9 typedef struct _emu_fs_t {
10 EMUFS_TYPE tipo; /* Corregir nombres */
11 unsigned long tam_bloque; /* 0 si no tiene bloques */
12 int (*leer_bloque)(struct _emu_fs_t *, int, void *);
13 int (*leer_registro)(struct _emu_fs_t *, int, void *, unsigned long);
14 int (*grabar_registro)(struct _emu_fs_t *, void *, unsigned long );
15 int (*borrar_registro)(struct _emu_fs_t *, int);
19 EMUFS *emufs_crear(const char *filename, char tipo, unsigned int tam_bloque, unsigned int tam_reg);
20 EMUFS *emufs_abrir(const char *filename);
22 int emufs_destruir(EMUFS *e);