1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/harness/testcaseparser.h Wed Jan 25 19:33:43 2012 +0000
1.3 @@ -0,0 +1,22 @@
1.4 +#ifndef TESTCASE_PARSER_H
1.5 +#define TESTCASE_PARSER_H
1.6 +
1.7 +#include <gclib/gclib.h>
1.8 +
1.9 +typedef struct {
1.10 + char *filename;
1.11 + char *contents;
1.12 + String *flag;
1.13 + size_t pos;
1.14 + char *tag;
1.15 + char *tag_text;
1.16 +} TestcaseParser;
1.17 +
1.18 +const char *testcase_parser_get_flag(TestcaseParser *parser);
1.19 +boolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag,
1.20 + const char **text);
1.21 +boolean testcase_parser_at_eof(TestcaseParser *parser);
1.22 +TestcaseParser *testcase_parser_new_from_file(const char *filename);
1.23 +void testcase_parser_free(TestcaseParser *parser);
1.24 +
1.25 +#endif /* TESTCASE_PARSER_H */