Welcome to mirror list, hosted at ThFree Co, Russian Federation.

filter.h « project « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43979b5eef8dc0215f8b303c2cf848799bcfae0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * \file   filter.h
 * \brief  Configuration filter settings.
 * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
 *
 * \addtogroup project
 * @{
 */
#if !defined(PREMAKE_FILTER_H)
#define PREMAKE_FILTER_H

#include "base/strings.h"
#include "script/script.h"


/**
 * Configuration filter keys.
 */
enum FilterKey
{
	FilterAction,
	FilterConfig,
	FilterOS,
	NumFilters
};


DECLARE_CLASS(Filter)

Filter       filter_create(Script script);
void         filter_destroy(Filter flt);

const char*  filter_get_value(Filter flt, enum FilterKey key);
int          filter_is_match(Filter flt, Strings terms);
void         filter_set_value(Filter flt, enum FilterKey key, const char* value);


#endif
/** @} */