Browse Source

...

COM-121
Volker Birk 2 years ago
parent
commit
6fa71c612d
4 changed files with 8 additions and 4 deletions
  1. +2
    -2
      CpEpEngine.cpp
  2. +0
    -1
      CpEpEngine.h
  3. +3
    -1
      pEpCOMServerAdapter.cpp
  4. +3
    -0
      pEpCOMServerAdapter.idl

+ 2
- 2
CpEpEngine.cpp View File

@ -1032,11 +1032,11 @@ PEP_STATUS CpEpEngine::messageToSend(message *msg)
}
}
sync_callbacks.compact();
if (ljs)
ljs->messageToSend(msg);
sync_callbacks.compact();
return PEP_STATUS_OK;
}


+ 0
- 1
CpEpEngine.h View File

@ -64,7 +64,6 @@ public:
error(ex.what());
}
session(pEp::Adapter::release);
shutdown();
sync_callbacks.clear([](CpEpEngine::MarshaledCallbacks *p) {
if (p) {


+ 3
- 1
pEpCOMServerAdapter.cpp View File

@ -8,6 +8,7 @@
#include "GateKeeper.h"
#include "pEpCOMServerAdapter.h"
#include "LocalJSONAdapter.h"
#include "../libpEpAdapter/callback_dispatcher.hh"
using namespace ATL;
using namespace std;
@ -20,6 +21,7 @@ void CpEpCOMServerAdapterModule::gatekeeper(CpEpCOMServerAdapterModule * self)
CpEpCOMServerAdapterModule _AtlModule;
LocalJSONAdapter* ljs = nullptr;
extern pEp::CallbackDispatcher callback_dispatcher;
extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/,
LPTSTR lpCmdLine, int nShowCmd)
@ -32,7 +34,7 @@ extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/
if (!boost::algorithm::iequals(lpCmdLine, "/regserver")) {
ljs = &LocalJSONAdapter::createInstance();
ljs->startup(pEp::Adapter::_messageToSend);
ljs->startup(pEp::CallbackDispatcher::messageToSend);
}
auto rv = _AtlModule.WinMain(nShowCmd);


+ 3
- 0
pEpCOMServerAdapter.idl View File

@ -38,6 +38,9 @@ interface IpEpEngineCallbacks : IUnknown {
// forming group
// SyncNotifyFormingGroup = 10,
SyncNotifyStart = 126,
SyncNotifyStop = 127,
// message cannot be sent, need passphrase
SyncNotifyPassphraseRequired = 128,


Loading…
Cancel
Save