blob: f39224f8cbd314a89d7563bda574040ba4fe0c0f (
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
|
/**
* \file sourcetree.h
* \brief Source code tree enumerator.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#if !defined(PREMAKE_SOURCETREE_H)
#define PREMAKE_SOURCETREE_H
#include "session/session.h"
/**
* State values for the source tree enumeration functions.
*/
enum SourceTreeState
{
GroupStart,
GroupEnd,
SourceFile
};
/**
* Per-file callback signature for action_source_tree.
* \param sess The current execution state context.
* \param prj The current project; contains the file being enumerated.
* \param strm The active output stream; for writing the file markup.
* \param filename The name of the file to process.
* \param state One of the ActionSourceStates, enabling file grouping.
* \returns OKAY if successful.
*/
typedef int (*SourceTreeCallback)(Session sess, Project prj, Stream strm, const char* filename, int state);
int sourcetree_walk(Session sess, Project prj, Stream strm, SourceTreeCallback handler);
#endif
|