src/scanner.h

changeset 102
665b60727a89
parent 99
094eff4cfc03
child 103
31fa205db85a
equal deleted inserted replaced
101:0cb645809b1a 102:665b60727a89
29 29
30 #include "settings.h" 30 #include "settings.h"
31 #include "string_list.h" 31 #include "string_list.h"
32 32
33 typedef struct { 33 typedef struct {
34 char *dir; 34 const char *dir;
35 unsigned spaces; 35 unsigned spaces;
36 } scanner; 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; 43 } scanresult_ext;
44 44
45 typedef struct { 45 typedef struct {
46 unsigned result; 46 unsigned result;
47 scanresult_ext* ext; 47 scanresult_ext *ext;
48 } scanresult; 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 scanner, settings* settings, 54 void scanDirectory(scanner scanner, settings *settings,
55 string_list* output, scanresult* result); 55 string_list *output, scanresult *result);
56 56
57 scanresult* new_scanresult(settings* settings); 57 scanresult *new_scanresult(settings *settings);
58 void destroy_scanresult(scanresult*); 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

mercurial