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

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/block.h')
-rw-r--r--src/objects/block.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/objects/block.h b/src/objects/block.h
new file mode 100644
index 0000000..9ba9b03
--- /dev/null
+++ b/src/objects/block.h
@@ -0,0 +1,43 @@
+/**
+ * \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[].
+ */
+enum BlockField
+{
+ BlockDefines,
+ BlockObjDir,
+ BlockTerms,
+ NumBlockFields
+};
+
+extern struct 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, enum BlockField which);
+void block_set_values(Block blk, enum BlockField which, Strings strs);
+
+
+#endif
+/** @} */