SmartFolder  1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
List.h
Go to the documentation of this file.
1 
10 #ifndef _LIST_H_
11 #define _LIST_H_
12 
13 #include <stdlib.h>
14 #include <string.h>
15 #include "Logger.h"
16 
17 typedef struct listElement_st {
18  char* data;
19  struct listElement_st* next;
20 } ListElement;
21 
22 typedef struct list_st {
23  ListElement* head;
24  int size;
25 } List;
26 
31 List* initList();
32 
38 void insert(List* l, char* element);
39 
45 void removeIndex(List* l, int idx);
46 
52 void removeObject(List* l, char* element);
53 
60 int searchInList(List* l, char* element);
61 
68 char* get(List* l, int idx);
69 
76 List* listUnion(List* l1, List* l2);
77 
84 List* listIntersect(List* l1, List* l2);
85 
94 List* listXOR(List* l1, List* l2);
95 
103 List* listComplement(List* l1, List* l2);
104 
109 void dumpList(List* l);
110 
115 void deleteList(List* l);
116 
117 #endif /* end of include guard: _LIST_H_ */
List * listXOR(List *l1, List *l2)
Definition: List.c:98
Definition: List.h:22
int searchInList(List *l, char *element)
Definition: List.c:49
List * listUnion(List *l1, List *l2)
Definition: List.c:69
Header file that contains the definitions for logging to the console.
void removeObject(List *l, char *element)
Definition: List.c:42
void deleteList(List *l)
Definition: List.c:134
void removeIndex(List *l, int idx)
Definition: List.c:27
List * listComplement(List *l1, List *l2)
Definition: List.c:121
List * initList()
Definition: List.c:12
List * listIntersect(List *l1, List *l2)
Definition: List.c:86
Definition: List.h:17
void insert(List *l, char *element)
Definition: List.c:19
void dumpList(List *l)
Definition: List.c:145