| 31 #include "string_list.h" |
31 #include "string_list.h" |
| 32 |
32 |
| 33 typedef struct { |
33 typedef struct { |
| 34 char *dir; |
34 char *dir; |
| 35 unsigned spaces; |
35 unsigned spaces; |
| 36 } scanner_t; |
36 } scanner; |
| 37 |
37 |
| 38 typedef struct { |
38 typedef struct { |
| 39 unsigned count; |
39 unsigned count; |
| 40 unsigned capacity; |
40 unsigned capacity; |
| 41 char** extensions; |
41 char** extensions; |
| 42 unsigned* result; |
42 unsigned* result; |
| 43 } scanresult_ext_t; |
43 } scanresult_ext; |
| 44 |
44 |
| 45 typedef struct { |
45 typedef struct { |
| 46 unsigned result; |
46 unsigned result; |
| 47 scanresult_ext_t* ext; |
47 scanresult_ext* ext; |
| 48 } scanresult_t; |
48 } scanresult; |
| 49 |
49 |
| 50 #ifdef _cplusplus |
50 #ifdef _cplusplus |
| 51 extern "C" { |
51 extern "C" { |
| 52 #endif |
52 #endif |
| 53 |
53 |
| 54 void scanDirectory(scanner_t scanner, settings_t* settings, |
54 void scanDirectory(scanner scanner, settings* settings, |
| 55 string_list_t* output, scanresult_t* result); |
55 string_list* output, scanresult* result); |
| 56 |
56 |
| 57 scanresult_t* new_scanresult_t(settings_t* settings); |
57 scanresult* new_scanresult(settings* settings); |
| 58 void destroy_scanresult_t(scanresult_t*); |
58 void destroy_scanresult(scanresult*); |
| 59 |
59 |
| 60 char *make_path_absolute(const char *path); |
60 char *make_path_absolute(const char *path); |
| 61 |
61 |
| 62 #ifdef _cplusplus |
62 #ifdef _cplusplus |
| 63 } |
63 } |