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

block.h « objects « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57c7b0c5df42f1d51eab706e8c6f99578c34b64b (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
40
41
42
43
44
45
/**
 * \file   block.h
 * \brief  Configuration blocks API.
 * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
 *
 * \defgroup block Configuration Block
 * \ingroup  objects
 * @{
 */
#if !defined(PREMAKE_BLOCK_H)
#define PREMAKE_BLOCK_H

#include "fields.h"


/**
 * Configuration block field index.
 * \note If you modify this list, you must also update BlockFieldInfo[].
 */
typedef enum enum_BlockField
{
	BlockDefines,
	BlockFlags,
	BlockObjDir,
	BlockTerms,
	NumBlockFields
} BlockField;

extern FieldInfo BlockFieldInfo[];


DECLARE_CLASS(Block)

Block      block_create(void);
void       block_destroy(Block blk);

int        block_applies_to(Block blk, const char* cfg_name);
Fields     block_get_fields(Block blk);
Strings    block_get_values(Block blk, BlockField which);
int        block_is_valid_flag(const char* flag);
void       block_set_values(Block blk, BlockField which, Strings strs);


#endif
/** @} */