src/scanner.h

changeset 61
9c8d768f0244
parent 60
69be673a4fd0
child 66
be2084398c37
equal deleted inserted replaced
60:69be673a4fd0 61:9c8d768f0244
35 char *dir; 35 char *dir;
36 int spaces; 36 int spaces;
37 } scanner_t; 37 } scanner_t;
38 38
39 typedef struct { 39 typedef struct {
40 int directory; 40 int count;
41 int capacity;
42 char** extensions;
43 int* lines;
44 } scanresult_ext_t;
45
46 typedef struct {
47 int lines;
48 scanresult_ext_t* ext;
41 } scanresult_t; 49 } scanresult_t;
42 50
43 #ifdef _cplusplus 51 #ifdef _cplusplus
44 extern "C" { 52 extern "C" {
45 #endif 53 #endif
46 54
47 void scanDirectory(scanner_t scanner, settings_t* settings, 55 void scanDirectory(scanner_t scanner, settings_t* settings,
48 string_list_t* output, scanresult_t* result); 56 string_list_t* output, scanresult_t* result);
49 57
58 scanresult_t* new_scanresult_t(settings_t* settings);
59 void destroy_scanresult_t(scanresult_t*);
60
61
50 #ifdef _cplusplus 62 #ifdef _cplusplus
51 } 63 }
52 #endif 64 #endif
53 65
54 #endif /* SCANNER_H_ */ 66 #endif /* SCANNER_H_ */

mercurial