scanner.h

changeset 23
778388400f7b
parent 20
43725438ac50
--- a/scanner.h	Thu Oct 20 17:29:23 2011 +0200
+++ b/scanner.h	Fri Oct 21 15:09:26 2011 +0200
@@ -11,12 +11,16 @@
 #include "stdinc.h"
 #include "settings.h"
 
+typedef struct {
+  char *dir;
+  int spaces;
+} scanner_t;
+
 #ifdef _cplusplus
 extern "C" {
 #endif
 
-int scanDirectory(DIR *dir, const int spaces,
-                  char* currdir, settings_t* settings);
+int scanDirectory(scanner_t scanner, settings_t* settings);
 
 #ifdef _cplusplus
 }

mercurial