summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-18 18:18:43 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-18 18:18:43 (GMT)
commit6769e8447291ab73cbf904a9470e4a7094c34e4d (patch)
tree0139f69c88217afb66567f20495b272f0562d1df /Source/cmSystemTools.h
parenteab24670e3e2a8b2a7469ba418e183c363ff27d1 (diff)
downloadCMake-6769e8447291ab73cbf904a9470e4a7094c34e4d.zip
CMake-6769e8447291ab73cbf904a9470e4a7094c34e4d.tar.gz
CMake-6769e8447291ab73cbf904a9470e4a7094c34e4d.tar.bz2
Improve message handler to include client data.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 229232f..7ec22d2 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -149,14 +149,14 @@ public:
*/
static const char* GetExecutableExtension();
- typedef void (*ErrorCallback)(const char*, const char*, bool&);
+ typedef void (*ErrorCallback)(const char*, const char*, bool&, void*);
/**
* Set the function used by GUI's to display error messages
* Function gets passed: message as a const char*,
* title as a const char*, and a reference to bool that when
* set to false, will disable furthur messages (cancel).
*/
- static void SetErrorCallback(ErrorCallback f);
+ static void SetErrorCallback(ErrorCallback f, void* clientData=0);
/**
* Display an error message.
@@ -308,6 +308,7 @@ private:
static bool s_DisableMessages;
static bool s_DisableRunCommandOutput;
static ErrorCallback s_ErrorCallback;
+ static void* s_ErrorCallbackClientData;
};