X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/347f484f4959765335f19d6e69dd8df300956014..289dcaa6f45429b0c68e1490743b9d73d698678e:/emufs/b_plus.h?ds=sidebyside diff --git a/emufs/b_plus.h b/emufs/b_plus.h index 564c3ae..076f2b1 100644 --- a/emufs/b_plus.h +++ b/emufs/b_plus.h @@ -19,6 +19,7 @@ typedef struct _indexspecs_ { typedef struct _index_dat_ { EMUFS_BLOCK_ID num_bloque; + EMUFS_BLOCK_ID num_nuevo_bloque; CLAVE clave; } INDEX_DAT; @@ -34,14 +35,9 @@ typedef struct nodo_b_plus { int emufs_b_plus_crear(INDEXSPECS *idx); int emufs_b_plus_get_bloque(INDEXSPECS *idx, INDEX_DAT *dataset); int emufs_b_plus_actualizar_nodo(INDEX_DAT *dataset); - -/** inserta una clave en el arbol y devuelve en dataset->num_bloque el - bloque donde se insertara en el .dat*/ -int emufs_b_plus_insertar_clave(INDEX_DAT *dataset); - - int emufs_b_plus_buscar(); int emufs_b_plus_destuir(); - +int b_plus_insertar_clave(INDEXSPECS *, INDEX_DAT *); +NODO_B_PLUS *b_plus_leer_nodo(INDEXSPECS *idx, int num); #endif