1.1 --- a/scanner.h Thu Oct 20 17:29:23 2011 +0200 1.2 +++ b/scanner.h Fri Oct 21 15:09:26 2011 +0200 1.3 @@ -11,12 +11,16 @@ 1.4 #include "stdinc.h" 1.5 #include "settings.h" 1.6 1.7 +typedef struct { 1.8 + char *dir; 1.9 + int spaces; 1.10 +} scanner_t; 1.11 + 1.12 #ifdef _cplusplus 1.13 extern "C" { 1.14 #endif 1.15 1.16 -int scanDirectory(DIR *dir, const int spaces, 1.17 - char* currdir, settings_t* settings); 1.18 +int scanDirectory(scanner_t scanner, settings_t* settings); 1.19 1.20 #ifdef _cplusplus 1.21 }