summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-20 21:40:16 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-02-13 21:39:20 (GMT)
commite0f3931226d6f947572bce7a4b98c55812bba105 (patch)
treeb10089a24e96921a74a261cc03d3d57f8f83aee4 /Source/cmCommands.h
parent72dcbbe5c017a4c071187259f9594ccf02f7b466 (diff)
downloadCMake-e0f3931226d6f947572bce7a4b98c55812bba105.zip
CMake-e0f3931226d6f947572bce7a4b98c55812bba105.tar.gz
CMake-e0f3931226d6f947572bce7a4b98c55812bba105.tar.bz2
cmCommands: add commands directly to cmState
Diffstat (limited to 'Source/cmCommands.h')
-rw-r--r--Source/cmCommands.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmCommands.h b/Source/cmCommands.h
index 4d09e42..7895ece 100644
--- a/Source/cmCommands.h
+++ b/Source/cmCommands.h
@@ -3,17 +3,14 @@
#ifndef cmCommands_h
#define cmCommands_h
-#include <cmConfigure.h> // IWYU pragma: keep
+class cmState;
-#include <vector>
-
-class cmCommand;
/**
- * Global function to return all compiled in commands.
+ * Global function to register all compiled in commands.
* To add a new command edit cmCommands.cxx and add your command.
* It is up to the caller to delete the commands created by this call.
*/
-std::vector<cmCommand*> GetScriptingCommands();
-std::vector<cmCommand*> GetProjectCommands();
+void GetScriptingCommands(cmState* state);
+void GetProjectCommands(cmState* state);
#endif