Audacity 3.2.0
ScriptCommandRelay.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity - A Digital Audio Editor
4 Copyright 1999-2018 Audacity Team
5 File License: wxWidgets
6
7 Dan Horgan
8
9******************************************************************//*******************************************************************/
15
16#ifndef __SCRIPT_COMMAND_RELAY__
17#define __SCRIPT_COMMAND_RELAY__
18
19
20
21#include <memory>
22
23class wxString;
24
25typedef int(*tpExecScriptServerFunc)(wxString * pIn, wxString * pOut);
27
28class AUDACITY_DLL_API ScriptCommandRelay
29{
30public:
31 static void StartScriptServer(tpRegScriptServerFunc scriptFn);
32};
33
34extern int ExecFromMain(wxString *pIn, wxString *pOut);
35
36#endif /* End of include guard: __SCRIPT_COMMAND_RELAY__ */
int(* tpExecScriptServerFunc)(wxString *pIn, wxString *pOut)
int(* tpRegScriptServerFunc)(tpExecScriptServerFunc pFn)
int ExecFromMain(wxString *pIn, wxString *pOut)
Executes a command on the main (GUI) thread.
ScriptCommandRelay is just a way to move some of the scripting-specific code out of ModuleManager.