1.1 --- a/src/scanner.h Sat Jul 25 18:28:01 2020 +0200 1.2 +++ b/src/scanner.h Mon Jul 27 17:19:56 2020 +0200 1.3 @@ -37,7 +37,15 @@ 1.4 } scanner_t; 1.5 1.6 typedef struct { 1.7 - int directory; 1.8 + int count; 1.9 + int capacity; 1.10 + char** extensions; 1.11 + int* lines; 1.12 +} scanresult_ext_t; 1.13 + 1.14 +typedef struct { 1.15 + int lines; 1.16 + scanresult_ext_t* ext; 1.17 } scanresult_t; 1.18 1.19 #ifdef _cplusplus 1.20 @@ -47,6 +55,10 @@ 1.21 void scanDirectory(scanner_t scanner, settings_t* settings, 1.22 string_list_t* output, scanresult_t* result); 1.23 1.24 +scanresult_t* new_scanresult_t(settings_t* settings); 1.25 +void destroy_scanresult_t(scanresult_t*); 1.26 + 1.27 + 1.28 #ifdef _cplusplus 1.29 } 1.30 #endif