1.1 --- a/cline.h Mon May 30 08:45:08 2011 +0200 1.2 +++ b/cline.h Thu Sep 15 13:29:06 2011 +0200 1.3 @@ -1,39 +1,25 @@ 1.4 -#ifndef _CLINE_H 1.5 -#define _CLINE_H 1.6 +/* 1.7 + * cline.h 1.8 + * 1.9 + * Created on: 23.05.2011 1.10 + * Author: beckermi 1.11 + */ 1.12 1.13 -#include <stdio.h> 1.14 -#include <string.h> 1.15 -#include <stdbool.h> 1.16 -#include <stdlib.h> 1.17 -#include <dirent.h> 1.18 +#ifndef CLINE_H_ 1.19 +#define CLINE_H_ 1.20 1.21 - 1.22 -typedef struct _suffix_list { 1.23 - int count; 1.24 - char** items; 1.25 -} suffix_list_t; 1.26 - 1.27 -typedef struct _settings { 1.28 - char fileSeparator; 1.29 - suffix_list_t* suffixList; 1.30 - bool recursive; 1.31 - bool includeSuffixes; 1.32 - bool matchesOnly; 1.33 -} settings_t; 1.34 +#include "stdinc.h" 1.35 +#include "settings.h" 1.36 1.37 #ifdef _cplusplus 1.38 extern "C" { 1.39 #endif 1.40 -settings_t* new_settings_t(); 1.41 -void destroy_settings_t(settings_t*); 1.42 -suffix_list_t* new_suffix_list_t(); 1.43 -void destroy_suffix_list_t(suffix_list_t*); 1.44 -void add_suffix(suffix_list_t*, char*); 1.45 1.46 void printHelpText(const char*); 1.47 int exit_with_help(char*, settings_t*, int); 1.48 + 1.49 #ifdef _cplusplus 1.50 } 1.51 #endif 1.52 1.53 -#endif /* _CLINE_H */ 1.54 +#endif /* CLINE_H_ */