| 22:4508da679ffb | 23:778388400f7b |
|---|---|
| 9 #define SCANNER_H_ | 9 #define SCANNER_H_ |
| 10 | 10 |
| 11 #include "stdinc.h" | 11 #include "stdinc.h" |
| 12 #include "settings.h" | 12 #include "settings.h" |
| 13 | 13 |
| 14 typedef struct { | |
| 15 char *dir; | |
| 16 int spaces; | |
| 17 } scanner_t; | |
| 18 | |
| 14 #ifdef _cplusplus | 19 #ifdef _cplusplus |
| 15 extern "C" { | 20 extern "C" { |
| 16 #endif | 21 #endif |
| 17 | 22 |
| 18 int scanDirectory(DIR *dir, const int spaces, | 23 int scanDirectory(scanner_t scanner, settings_t* settings); |
| 19 char* currdir, settings_t* settings); | |
| 20 | 24 |
| 21 #ifdef _cplusplus | 25 #ifdef _cplusplus |
| 22 } | 26 } |
| 23 #endif | 27 #endif |
| 24 | 28 |