blob: 7b041cc181136aae8df03e9afce9ed015c37634f (
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
46
|
/**
* \file actions.h
* \brief Built-in engine actions.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*
* \defgroup action Actions
*
* The actions component contains the implementation of all of the built-in
* Premake actions, along with a few common support functions.
*
* @{
*/
#if !defined(PREMAKE_ACTIONS_H)
#define PREMAKE_ACTIONS_H
#include "objects/session.h"
/**
* Callback signature for Premake action handlers, which will get triggered
* if user specifies that action on the command line for processing.
* \param sess The current execution session context.
* \returns OKAY If successful.
*/
typedef int (*ActionCallback)(Session sess);
/**
* Describe a Premake action, including the handler function and the metadata
* required to list it in the user help.
*/
typedef struct struct_ActionInfo
{
const char* name;
const char* description;
ActionCallback callback;
} ActionInfo;
/* the list of built-in Premake actions */
extern ActionInfo Actions[];
#endif
/** @} */
|