Commons Library  1.7.0
node.h
Ir a la documentación de este archivo.
1 /*
2  * Copyright (C) 2012 Sistemas Operativos - UTN FRBA. All rights reserved.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef NODE_H_
18 #define NODE_H_
19 
22  struct link_element{
23  void *data;
24  struct link_element *next;
25  };
26  typedef struct link_element t_link_element;
27 
28  struct double_link_element{
29  struct double_link_element *previous;
30  void *data;
31  struct double_link_element *next;
32  };
33  typedef struct double_link_element t_double_link_element;
34 
35  struct hash_element{
36  char *key;
37  unsigned int hashcode;
38  void *data;
39  struct hash_element *next;
40  };
41  typedef struct hash_element t_hash_element;
42 
45 #endif /*NODE_H_*/