diff -r 000000000000 -r cbd63f7ba40f test/harness/testcaseparser.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/harness/testcaseparser.h Wed Jan 25 19:33:43 2012 +0000 @@ -0,0 +1,22 @@ +#ifndef TESTCASE_PARSER_H +#define TESTCASE_PARSER_H + +#include + +typedef struct { + char *filename; + char *contents; + String *flag; + size_t pos; + char *tag; + char *tag_text; +} TestcaseParser; + +const char *testcase_parser_get_flag(TestcaseParser *parser); +boolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag, + const char **text); +boolean testcase_parser_at_eof(TestcaseParser *parser); +TestcaseParser *testcase_parser_new_from_file(const char *filename); +void testcase_parser_free(TestcaseParser *parser); + +#endif /* TESTCASE_PARSER_H */