-
Notifications
You must be signed in to change notification settings - Fork 2
/
list.h
57 lines (26 loc) · 1.05 KB
/
list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Authors Kazakos Vasileios , Farao Georgios , Manolis Stivaktas */
#ifndef list_h
#define list_h
typedef struct lnode {
struct lnode * next;
char * json_name;
struct node * file_node;
}lnode;
typedef struct list {
lnode * start;
lnode * end;
struct RBTree * different_cliques;
struct RBTree * printed_different_cliques;
int print_flag; /* 1 when list is being printed, else 0 */
int size; /* Size of list */
int Removed_duplicates;
}list;
///////////////////////////////////////// FUNCTIONS /////////////////////////////////////////
list * new_list(void); /* Creating new list */
lnode * new_lnode(char * jsonName); /* Creating new list node */
void insert_lnode( list * list, lnode * lnode); /* Inserting list node to list */
void delete_list( list * list); /* Deleting list */
void delete_list_node(list * List); /* Deleting first node of list */
void create_validation_list(list * mylist );
void printval();
#endif /* list_h */