summaryrefslogtreecommitdiff
path: root/plugins/Modernb/modern_callproc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Modernb/modern_callproc.cpp')
-rw-r--r--plugins/Modernb/modern_callproc.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/Modernb/modern_callproc.cpp b/plugins/Modernb/modern_callproc.cpp
new file mode 100644
index 0000000000..ab26eb03eb
--- /dev/null
+++ b/plugins/Modernb/modern_callproc.cpp
@@ -0,0 +1,20 @@
+#include "hdr/modern_commonheaders.h"
+#include "hdr/modern_callproc.h"
+
+//////////////////////////////////////////////////////////////////////////
+// standard callback proc
+int CALLBACK __DoCallBack( LPARAM pvStorage)
+{
+ call::__baseCall * storage = (call::__baseCall *) pvStorage;
+ int res=storage->__DoCallStorageProc();
+ delete storage;
+ return res;
+}
+
+//////////////////////////////////////////////////////////////////////////
+// To do: Replace __ProcessCall to switching threads etc
+// and specify _DoCallback as callback
+int call::__ProcessCall( __baseCall * pStorage, ASYNC_T async )
+{
+ return __DoCallBack( (LPARAM)pStorage);
+}