1 /**********************************************************************
2 
3    Audacity - A Digital Audio Editor
4    Copyright 1999-2018 Audacity Team
5    File License: wxWidgets
6 
7    Dan Horgan
8 
9 ******************************************************************//**
10 
11 \file ScriptCommandRelay.h
12 \brief Contains declarations for ScriptCommandRelay
13 
14 *//*******************************************************************/
15 
16 #ifndef __SCRIPT_COMMAND_RELAY__
17 #define __SCRIPT_COMMAND_RELAY__
18 
19 
20 
21 #include <memory>
22 
23 class wxString;
24 
25 typedef int(*tpExecScriptServerFunc)(wxString * pIn, wxString * pOut);
26 typedef int(*tpRegScriptServerFunc)(tpExecScriptServerFunc pFn);
27 
28 class AUDACITY_DLL_API ScriptCommandRelay
29 {
30 public:
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.
35 extern void * ExecForLisp( char * pIn );
36 extern void * nyq_make_opaque_string( int size, unsigned char *src );
37 extern void * nyq_reformat_aud_do_response(const wxString & Str);
38 
39 #endif /* End of include guard: __SCRIPT_COMMAND_RELAY__ */
40