forked from Public-Mirror/Textractor
delete unused code
This commit is contained in:
parent
a89e33c68a
commit
51dc229edc
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
std::shared_mutex extenMutex;
|
std::shared_mutex extenMutex;
|
||||||
std::map<int, ExtensionFunction> extensions;
|
std::map<int, ExtensionFunction> extensions;
|
||||||
int processing;
|
|
||||||
|
|
||||||
std::map<int, QString> LoadExtensions()
|
std::map<int, QString> LoadExtensions()
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,7 @@ namespace Host
|
|||||||
|
|
||||||
DLLEXPORT void Start(ProcessEventCallback onAttach, ProcessEventCallback onDetach, ThreadEventCallback onCreate, ThreadEventCallback onRemove)
|
DLLEXPORT void Start(ProcessEventCallback onAttach, ProcessEventCallback onDetach, ThreadEventCallback onCreate, ThreadEventCallback onRemove)
|
||||||
{
|
{
|
||||||
std::tie(OnAttach, OnDetach, OnCreate, OnRemove) = { onAttach, onDetach, onCreate, onRemove };
|
OnAttach = onAttach; OnDetach = onDetach; OnCreate = onCreate; OnRemove = onRemove;
|
||||||
OnCreate(textThreadsByParams[{ 0, -1UL, -1UL, -1UL }] = new TextThread({ 0, -1UL, -1UL, -1UL }, USING_UNICODE));
|
OnCreate(textThreadsByParams[{ 0, -1UL, -1UL, -1UL }] = new TextThread({ 0, -1UL, -1UL, -1UL }, USING_UNICODE));
|
||||||
CreateNewPipe();
|
CreateNewPipe();
|
||||||
}
|
}
|
||||||
@ -143,11 +143,6 @@ namespace Host
|
|||||||
HOST_LOCK;
|
HOST_LOCK;
|
||||||
textThreadsByParams[{ 0, -1UL, -1UL, -1UL }]->AddSentence(std::wstring(text));
|
textThreadsByParams[{ 0, -1UL, -1UL, -1UL }]->AddSentence(std::wstring(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
DLLEXPORT void RegisterThreadCreateCallback(ThreadEventCallback cf) { OnCreate = cf; }
|
|
||||||
DLLEXPORT void RegisterThreadRemoveCallback(ThreadEventCallback cf) { OnRemove = cf; }
|
|
||||||
DLLEXPORT void RegisterProcessAttachCallback(ProcessEventCallback cf) { OnAttach = cf; }
|
|
||||||
DLLEXPORT void RegisterProcessDetachCallback(ProcessEventCallback cf) { OnDetach = cf; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DispatchText(ThreadParameter tp, const BYTE* text, int len)
|
void DispatchText(ThreadParameter tp, const BYTE* text, int len)
|
||||||
|
@ -47,11 +47,6 @@ namespace Host
|
|||||||
|
|
||||||
DLLEXPORT TextThread* GetThread(ThreadParameter tp);
|
DLLEXPORT TextThread* GetThread(ThreadParameter tp);
|
||||||
DLLEXPORT void AddConsoleOutput(std::wstring text);
|
DLLEXPORT void AddConsoleOutput(std::wstring text);
|
||||||
|
|
||||||
DLLEXPORT void RegisterThreadCreateCallback(ThreadEventCallback cf);
|
|
||||||
DLLEXPORT void RegisterThreadRemoveCallback(ThreadEventCallback cf);
|
|
||||||
DLLEXPORT void RegisterProcessAttachCallback(ProcessEventCallback cf);
|
|
||||||
DLLEXPORT void RegisterProcessDetachCallback(ProcessEventCallback cf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DispatchText(ThreadParameter tp, const BYTE *text, int len);
|
void DispatchText(ThreadParameter tp, const BYTE *text, int len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user