X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/9f078ed79f1a1eaefe8f4c757a04742c412d93c4..5565477433b377796908c649d62b17f83adbcb3a:/emufs/did.h?ds=sidebyside diff --git a/emufs/did.h b/emufs/did.h index 7f18e8b..40e8009 100644 --- a/emufs/did.h +++ b/emufs/did.h @@ -1,10 +1,57 @@ -#ifndef _DID_H_ -#define _DID_H_ -#include -#include +/* vim: set noexpandtab tabstop=4 shiftwidth=4: + *---------------------------------------------------------------------------- + * emufs + *---------------------------------------------------------------------------- + * This file is part of emufs. + * + * emufs is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * emufs is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along + * with emufs; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA + *---------------------------------------------------------------------------- + * Creado: jue abr 8 18:09:31 ART 2004 + * Autores: Nicolás Dimov + * Leandro Lucarella + *---------------------------------------------------------------------------- + * + * $Id$ + * + */ + +/** \file + * + * Manejo de archivos de índices de registros borrados (reutilizables). + * + * Interfaz del manejo de archivos de índices de registros borrados + * (reutilizables). + * + */ + +#ifndef _EMUFS_DID_H_ +#define _EMUFS_DID_H_ + #include "emufs.h" +#define EMUFS_DID_EXT ".did" + +/** Crea un archivo de ID's Liberados. */ +int emufs_did_crear(EMUFS*); + +/** Agrega un registro al archivo de ID's Libres (pila) */ +int emufs_did_agregar(EMUFS *, EMUFS_REG_ID); -int emufs_did_get_last(EMUFS *); +/** Devuelve el ID Libre, liberado mas recientemente (pila) */ +EMUFS_REG_ID emufs_did_get_last(EMUFS*, int*); +/** Obtiene el tamaño del archivo de identificadores liberados. */ +long emufs_did_get_file_size(EMUFS*, int*); -#endif /* _DID_H */ +#endif /* _EMUFS_DID_H */