40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/**********************************************************************
|
|
|
|
Audacity - A Digital Audio Editor
|
|
Copyright 1999-2018 Audacity Team
|
|
File License: wxWidgets
|
|
|
|
Dan Horgan
|
|
|
|
******************************************************************//**
|
|
|
|
\file ScriptCommandRelay.h
|
|
\brief Contains declarations for ScriptCommandRelay
|
|
|
|
*//*******************************************************************/
|
|
|
|
#ifndef __SCRIPT_COMMAND_RELAY__
|
|
#define __SCRIPT_COMMAND_RELAY__
|
|
|
|
|
|
|
|
#include "../MemoryX.h"
|
|
|
|
class wxString;
|
|
|
|
typedef int(*tpExecScriptServerFunc)(wxString * pIn, wxString * pOut);
|
|
typedef int(*tpRegScriptServerFunc)(tpExecScriptServerFunc pFn);
|
|
|
|
class AUDACITY_DLL_API ScriptCommandRelay
|
|
{
|
|
public:
|
|
static void StartScriptServer(tpRegScriptServerFunc scriptFn);
|
|
};
|
|
|
|
// The void * return is actually a Lisp LVAL and will be cast to such as needed.
|
|
extern void * ExecForLisp( char * pIn );
|
|
extern void * nyq_make_opaque_string( int size, unsigned char *src );
|
|
extern void * nyq_reformat_aud_do_response(const wxString & Str);
|
|
|
|
#endif /* End of include guard: __SCRIPT_COMMAND_RELAY__ */
|