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 TESTFILTERS_H 00025 #define TESTFILTERS_H 00026 00027 /* ------------------------------------------------------------------------- */ 00028 /* INCLUDES */ 00029 #include <libxml/xmlstring.h> 00030 #include <libxml/list.h> 00031 #include "testrunnerlite.h" 00032 #include "testdefinitiondatatypes.h" 00033 /* ------------------------------------------------------------------------- */ 00034 /* CONSTANTS */ 00035 /* None */ 00036 00037 /* ------------------------------------------------------------------------- */ 00038 /* MACROS */ 00039 /* None */ 00040 00041 /* ------------------------------------------------------------------------- */ 00042 /* DATA TYPES */ 00043 /* ------------------------------------------------------------------------- */ 00045 typedef struct test_filter_ { 00046 int exclude; 00047 xmlChar *key; 00048 xmlListPtr value_list; 00049 int (*filter) (struct test_filter_ *, const void *); 00051 } test_filter; 00052 /* ------------------------------------------------------------------------- */ 00053 /* FORWARD DECLARATIONS */ 00054 /* None */ 00055 00056 /* ------------------------------------------------------------------------- */ 00057 /* STRUCTURES */ 00058 /* None */ 00059 00060 /* ------------------------------------------------------------------------- */ 00061 /* FUNCTION PROTOTYPES */ 00062 /* ------------------------------------------------------------------------- */ 00063 void init_filters(); 00064 /* ------------------------------------------------------------------------- */ 00065 int parse_filter_string (char *); 00066 /* ------------------------------------------------------------------------- */ 00067 int filter_suite (td_suite *); 00068 /* ------------------------------------------------------------------------- */ 00069 int filter_set (td_set *); 00070 /* ------------------------------------------------------------------------- */ 00071 int filter_case (td_case *); 00072 /* ------------------------------------------------------------------------- */ 00073 void cleanup_filters(); 00074 /* ------------------------------------------------------------------------- */ 00075 00076 #endif /* TESTFILTER_H */ 00077 /* End of file */