X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/9dc122f5b0fdf868ce5945f63e7835701595c4e2..3291460361a5e4280b125e15f833d5ec1820c349:/tipo3/param_cte.h diff --git a/tipo3/param_cte.h b/tipo3/param_cte.h index b9bcba2..bb17c06 100644 --- a/tipo3/param_cte.h +++ b/tipo3/param_cte.h @@ -3,32 +3,31 @@ #include #include #include -#include "interface.h" +#include "emufs.h" -typedef struct param_cte_t { - 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 block_free_t{ + int block; + int free_space; +}BLOCK_FREE_T; +typedef struct block_reg_t{ + int block; + int id_reg; +}BLOCK_REG_T; -int leer_bloque(int ID, void *, unsigned long tam); +int leer_registro(EMUFS *emu, int ID, void *, unsigned long tam); -int leer_registro(int ID, void *, unsigned long tam); +int leer_bloque(EMUFS *emu, int ID, void *); -int grabar_registro(int ID, void *, unsigned long tam); +int grabar_registro(EMUFS *emu, 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 param_cte_t dato, param_cte_t** str); +int buscar_lugar(EMUFS *emu, unsigned long tam, int *fs); + +int get_id(EMUFS *emu); + +int grabar_bloque(EMUFS *emu, void *ptr, int num); #endif