From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/modernb/modern_callproc.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/modernb/modern_callproc.cpp (limited to 'plugins/modernb/modern_callproc.cpp') 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); +} -- cgit v1.2.3