X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/f62c69db84c4f3b567bd5dbd1eede1490b48b534..35c84de4b6d96cf3505ad2c075ff3998be04441b:/emufs/indices.h?ds=sidebyside diff --git a/emufs/indices.h b/emufs/indices.h index 7123f63..53c4c28 100644 --- a/emufs/indices.h +++ b/emufs/indices.h @@ -5,6 +5,8 @@ #include #include +#include "common.h" + #define STRUCT_OFFSET(x, y) ((int)(&(x->y))-(int)(x)) typedef struct _emu_fs_t EMUFS; @@ -92,6 +94,8 @@ void emufs_indice_agregar(INDICE *primero, char *data, INDICE_DATO dato); INDICE_DATO emufs_indice_buscar(INDICE *primero, char *data); +CLAVE emufs_indice_generar_clave(INDICE *idx, char *data); +CLAVE emufs_indice_generar_clave_desde_valor(INDICE *idx, char *data); /** Compara 2 claves de la forma c1 < c2 */ int emufs_indice_es_menor(INDICE *idx, CLAVE c1, CLAVE c2);