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
34// The void * return is actually a Lisp LVAL and will be cast to such as needed.
35extern void * ExecForLisp( char * pIn );
36extern void * nyq_make_opaque_string( int size, unsigned char *src );
37extern void * nyq_reformat_aud_do_response(const wxString & Str);
38
39#endif /* End of include guard: __SCRIPT_COMMAND_RELAY__ */
int(* tpExecScriptServerFunc)(wxString *pIn, wxString *pOut)
void * ExecForLisp(char *pIn)
void * nyq_make_opaque_string(int size, unsigned char *src)
Definition: Nyquist.cpp:3560
void * nyq_reformat_aud_do_response(const wxString &Str)
Definition: Nyquist.cpp:3574
int(* tpRegScriptServerFunc)(tpExecScriptServerFunc pFn)
ScriptCommandRelay is just a way to move some of the scripting-specific code out of ModuleManager.