-#ifndef _IDX_H
-#define _IDX_H
+/* 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:11:46 ART 2004
+ * Autores: Nicolás Dimov <sagardua@uolsinectis.com.ar>
+ * Leandro Lucarella <llucare@fi.uba.ar>
+ *----------------------------------------------------------------------------
+ *
+ * $Id$
+ *
+ */
+
+/** \file
+ *
+ * Manejo de archivos de índice de registros.
+ *
+ * Interfaz del manejo de archivos de índice de registros.
+ *
+ */
+
+#ifndef _EMUFS_IDX_H
+#define _EMUFS_IDX_H
+
#include <string.h>
+#include <unistd.h>
#include "emufs.h"
+#define EMUFS_IDX_EXT ".idx"
+
+typedef struct emufs_idx_t {
+ int block;
+ long int id_reg;
+} EMUFS_IDX;
+
+FILE* emufs_idx_abrir(EMUFS*, const char*);
+
+int emufs_idx_crear(EMUFS*);
+
int emufs_idx_buscar_mayor_id(EMUFS *);
-#endif /* _IDX_H */
+int emufs_idx_buscar_registro(EMUFS *, int);
+
+int emufs_idx_agregar(EMUFS *, int , int);
+
+int emufs_idx_borrar(EMUFS *emu, int ID);
+
+#endif /* _EMUFS_IDX_H */