X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/165cd5e4fd5d2440d04531adf8c30378b0f8fef4..cea6c333334aa778c0828c62821f4fafc099ea8c:/tipo3/param_cte.h diff --git a/tipo3/param_cte.h b/tipo3/param_cte.h index 92c9477..47b2568 100644 --- a/tipo3/param_cte.h +++ b/tipo3/param_cte.h @@ -3,8 +3,8 @@ #include #include #include -#include "interface.h" - +#include +#include "emufs.h" typedef struct block_free_t{ int block; @@ -13,22 +13,24 @@ typedef struct block_free_t{ typedef struct block_reg_t{ int block; - int id_reg; + long int id_reg; }BLOCK_REG_T; -int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam); +int leer_registro(EMUFS *, int , void *, unsigned long); + +int leer_bloque(EMUFS *, int , void *); -int leer_bloque(EMUFS *emu, int ID, void *); +int grabar_registro(EMUFS *, void *, unsigned long ); -int grabar_registro(EMUFS *emu, void *, unsigned long tam); +int existe_registro(EMUFS *, int); -int existe_registro(EMUFS *emu, int ID); +int buscar_registro(EMUFS *, int); -int buscar_registro(EMUFS *emu, int ID); +int buscar_lugar(EMUFS *, unsigned long , int *); -int buscar_lugar(EMUFS *emu, unsigned long tam, int *fs); +int get_id(EMUFS *); -int get_id(EMUFS *emu); +int grabar_bloque(EMUFS *, void *, int); -int grabar_bloque(EMUFS *emu, void *ptr, int num); +int borrar_registro(EMUFS*, int, int); #endif