test/harness/testcaseparser.h
author ali <ali@juiblex.co.uk>
Tue Feb 07 08:15:17 2012 +0000 (2012-02-07)
changeset 20 411a8e696a47
parent 5 f600b0d1fc5d
permissions -rw-r--r--
Added tag 1.52 for changeset 05d082ebf685
     1 #ifndef TESTCASE_PARSER_H
     2 #define TESTCASE_PARSER_H
     3 
     4 #include <glib.h>
     5 #include <bl/bl.h>
     6 
     7 typedef struct {
     8     char *filename;
     9     char *contents;
    10     GString *flag;
    11     size_t pos;
    12     char *tag;
    13     char *tag_text;
    14 } TestcaseParser;
    15 
    16 const char *testcase_parser_get_flag(TestcaseParser *parser);
    17 gboolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag,
    18   const char **text);
    19 gboolean testcase_parser_at_eof(TestcaseParser *parser);
    20 TestcaseParser *testcase_parser_new_from_file(const char *filename);
    21 void testcase_parser_free(TestcaseParser *parser);
    22 
    23 #endif	/* TESTCASE_PARSER_H */