summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-22 17:14:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-22 17:14:55 (GMT)
commit8327883f3f87e03937e57da013b1681a3081c28a (patch)
treedfc4c657c27d8914e2c6d95352fb7702b5f619c4 /Source
parent92ac3689c9eb7de1e2b1555b8566cea2bb9319d2 (diff)
downloadCMake-8327883f3f87e03937e57da013b1681a3081c28a.zip
CMake-8327883f3f87e03937e57da013b1681a3081c28a.tar.gz
CMake-8327883f3f87e03937e57da013b1681a3081c28a.tar.bz2
ENH: Add DisplayStatus
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCPluginAPI.cxx7
-rw-r--r--Source/cmCPluginAPI.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 90be276..b8c562f 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -536,6 +536,12 @@ void cmRemoveFile(const char *name)
cmSystemTools::RemoveFile(name);
}
+void cmDisplayStatus(void *arg, const char* message)
+{
+ cmMakefile *mf = static_cast<cmMakefile *>(arg);
+ return mf->DisplayStatus(message, -1);
+}
+
void cmFree(void *data)
{
free(data);
@@ -550,6 +556,7 @@ cmCAPI cmStaticCAPI =
cmFreeArguments,
cmSetClientData,
cmSetError,
+ cmDisplayStatus,
cmAddCacheDefinition,
cmAddCustomCommand,
cmAddDefineFlag,
diff --git a/Source/cmCPluginAPI.h b/Source/cmCPluginAPI.h
index 311e6ab..ac2bfa3 100644
--- a/Source/cmCPluginAPI.h
+++ b/Source/cmCPluginAPI.h
@@ -57,6 +57,8 @@ typedef struct
void (*SetClientData) (void *info, void *cd);
/* when an error occurs, call this function to set the error string */
void (*SetError) (void *info, const char *err);
+ /* display status information */
+ void (*DisplaySatus) (void *info, const char *message);
/*=========================================================================
The following functions all directly map to methods in the cmMakefile