Fri, 27 May 2011 12:49:33 +0200
Fixed missing return statement in new_settings_t.
Added support for c++ compilers.
Added destroy_settings_t function
universe@3 | 1 | #ifndef _CLINE_H |
universe@3 | 2 | #define _CLINE_H |
universe@1 | 3 | |
universe@1 | 4 | #include <stdio.h> |
universe@1 | 5 | #include <string.h> |
universe@1 | 6 | #include <stdbool.h> |
universe@1 | 7 | #include <stdlib.h> |
universe@1 | 8 | #include <dirent.h> |
universe@1 | 9 | |
universe@3 | 10 | typedef struct _settings { |
universe@3 | 11 | char fileSeparator; |
universe@3 | 12 | int suffixc; |
universe@3 | 13 | char** suffixv; |
universe@3 | 14 | bool recursive; |
universe@3 | 15 | bool includeSuffixes; |
universe@3 | 16 | bool matchesOnly; |
universe@3 | 17 | } settings_t; |
universe@3 | 18 | |
universe@4 | 19 | #ifdef _cplusplus |
universe@4 | 20 | extern "C" { |
universe@4 | 21 | #endif |
universe@3 | 22 | settings_t* new_settings_t(); |
universe@4 | 23 | void destroy_settings_t(settings_t*); |
universe@3 | 24 | |
universe@4 | 25 | void printHelpText(const char*); |
universe@4 | 26 | #ifdef _cplusplus |
universe@4 | 27 | } |
universe@4 | 28 | #endif |
universe@3 | 29 | |
universe@3 | 30 | #endif /* _CLINE_H */ |