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.
Search.h
Go to the documentation of this file.
1 
10 #ifndef _SEARCH_H_
11 #define _SEARCH_H_
12 #define SECONDS_IN_DAY 86400
13 
14 #include <sys/stat.h>
15 #include <dirent.h>
16 #include <stdlib.h>
17 #include <string.h>
18 #include "Syscall.h"
19 #include "Logger.h"
20 #include "List.h"
21 
22 
23 typedef enum {
24  NONE,
25  NAME,
26  SIZE_SMALLER,
27  SIZE_EQUAL,
28  SIZE_BIGGER,
29  STATUS_DATE_B,
30  STATUS_DATE_E,
31  STATUS_DATE_A,
32  MODIF_DATE_B,
33  MODIF_DATE_E,
34  MODIF_DATE_A,
35  USAGE_DATE_B,
36  USAGE_DATE_E,
37  USAGE_DATE_A,
38  OWNER,
39  GROUP,
40  MODE
41 } searchType;
42 
50 List* searchDirectory(const char* rootDir, searchType type, const void* searchArg);
51 
58 int timeCompare(struct timespec* candidate, struct timespec* searchTime);
59 
60 #endif /* end of include guard: _SEARCH_H_ */
int timeCompare(struct timespec *candidate, struct timespec *searchTime)
Definition: Search.c:163
Definition: List.h:22
Header file that contains the definitions for logging to the console.
List * searchDirectory(const char *rootDir, searchType type, const void *searchArg)
Definition: Search.c:12
Header file that contains the definitions for system calls wrapper functions used in our program...
Header file that contains the definitions for a simple linked List data structure containing Strings...