X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/8c97736956c57a9bfa4537fa172c503ac2daff1b..2ef63227431ca5dc261ef1b3186d0a30d5742f25:/tipo3/emufs.h diff --git a/tipo3/emufs.h b/tipo3/emufs.h index 4314f6d..aeae572 100644 --- a/tipo3/emufs.h +++ b/tipo3/emufs.h @@ -7,16 +7,16 @@ typedef enum {T1, T2, T3} EMUFS_TYPE; typedef struct _emu_fs_t { - EMUFS_TYPE tipo; /* Corregir nombres */ - unsigned long tam_bloque; /* 0 si no tiene bloques */ - int (*leer_bloque)(struct _emu_fs_t *, int, void *); - int (*leer_registro)(struct _emu_fs_t *, int, void *, unsigned long); - int (*grabar_registro)(int , void *, unsigned long ); + EMUFS_TYPE tipo; /* Corregir nombres */ + unsigned long tam_bloque; /* 0 si no tiene bloques */ + int (*leer_bloque)(struct _emu_fs_t *, int, void *); + int (*leer_registro)(struct _emu_fs_t *, int, void *, unsigned long); + int (*grabar_registro)(struct _emu_fs_t *, void *, unsigned long ); int (*borrar_registro)(struct _emu_fs_t *, int); - char *nombre; + char *nombre; } EMUFS; -EMUFS *emufs_crear(const char *filename, int tipo); - +EMUFS *emufs_crear(const char *filename, char tipo, unsigned int tam_bloque, unsigned int tam_reg); +int emufs_destruir(EMUFS *e); #endif