00001 /* 00002 * This file is part of testrunner-lite 00003 * 00004 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Sampo Saaristo <ext-sampo.2.saaristo@nokia.com> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef TESTDEFINITIONPARSER_H 00025 #define TESTDEFINITIONPARSER_H 00026 00027 /* ------------------------------------------------------------------------- */ 00028 /* INCLUDES */ 00029 #include "testrunnerlite.h" 00030 #include "testdefinitiondatatypes.h" 00031 #include <libxml/xmlstring.h> 00032 00033 /* ------------------------------------------------------------------------- */ 00034 /* CONSTANTS */ 00035 /* None */ 00036 00037 /* ------------------------------------------------------------------------- */ 00038 /* MACROS */ 00039 00040 /* ------------------------------------------------------------------------- */ 00041 /* DATA TYPES */ 00042 /* ------------------------------------------------------------------------- */ 00044 typedef struct { 00045 void (*test_suite) (td_suite *); 00046 void (*test_suite_end) (); 00047 void (*test_suite_description) (char *); 00050 void (*test_set) (td_set *); 00051 } td_parser_callbacks; 00052 /* ------------------------------------------------------------------------- */ 00053 /* FORWARD DECLARATIONS */ 00054 /* None */ 00055 00056 /* ------------------------------------------------------------------------- */ 00057 /* STRUCTURES */ 00058 /* None */ 00059 00060 /* ------------------------------------------------------------------------- */ 00061 /* FUNCTION PROTOTYPES */ 00062 /* ------------------------------------------------------------------------- */ 00063 int parse_test_definition(testrunner_lite_options *); 00064 /* ------------------------------------------------------------------------- */ 00065 int td_reader_init(testrunner_lite_options *); 00066 /* ------------------------------------------------------------------------- */ 00067 void td_reader_close(void); 00068 /* ------------------------------------------------------------------------- */ 00069 int td_register_callbacks(td_parser_callbacks *); 00070 /* ------------------------------------------------------------------------- */ 00071 int td_next_node(void); 00072 /* ------------------------------------------------------------------------- */ 00073 00074 #endif /* TESTDEFINITIONPARSER_H */ 00075 /* End of file */