X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/d62c8c3816a5ff0a369982444f16b2c4b059da78..8c4b45bea612dbaa2b478203697ab153a11bf18a:/tipo3/param_cte.h diff --git a/tipo3/param_cte.h b/tipo3/param_cte.h index 6eb2dc6..545c21e 100644 --- a/tipo3/param_cte.h +++ b/tipo3/param_cte.h @@ -2,32 +2,32 @@ #define _PARAM_CTE_H_ #include #include +#include #include "interface.h" -typedef struct t_param_cte { - int ID; - char num_fac[9]; - char fecha_emision[9]; - char fecha_vto[9]; - char num_remito[9]; - char estado[2]; - char FP[2]; - char Por_DoI[6]; - char num_cta_cte[6]; - char num_cheque[19]; - int texto; /*referencia al texto en otro archivo.*/ -}; +typedef struct reg_exist_t{ + int id_reg; + char existe; +}REG_EXIST_T; +typedef struct block_free_t{ + int block; + int free_space; +}BLOCK_FREE_T; -int leer_bloque(int ID, void *, unsigned long tam); +typedef struct block_reg_t{ + int block; + int id_reg; +}BLOCK_REG_T; -int leer_registro(int ID, void *, unsigned long tam); +int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam); + +int leer_bloque(EMUFS *emu, int ID, void *); int grabar_registro(int ID, void *, unsigned long tam); -int existe_registro(int ID); +int existe_registro(EMUFS *emu, int ID); -int buscar_registro(int ID); +int buscar_registro(EMUFS *emu, int ID); -int copiar(struct t_param_cte dato, void** str); #endif