Audacity 3.2.0
Classes | Typedefs | Functions
ScriptCommandRelay.h File Reference

Contains declarations for ScriptCommandRelay. More...

#include <memory>
Include dependency graph for ScriptCommandRelay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptCommandRelay
 ScriptCommandRelay is just a way to move some of the scripting-specific code out of ModuleManager. More...
 

Typedefs

typedef int(* tpExecScriptServerFunc) (wxString *pIn, wxString *pOut)
 
typedef int(* tpRegScriptServerFunc) (tpExecScriptServerFunc pFn)
 

Functions

void * ExecForLisp (char *pIn)
 
void * nyq_make_opaque_string (int size, unsigned char *src)
 
void * nyq_reformat_aud_do_response (const wxString &Str)
 

Detailed Description

Contains declarations for ScriptCommandRelay.

Definition in file ScriptCommandRelay.h.

Typedef Documentation

◆ tpExecScriptServerFunc

typedef int(* tpExecScriptServerFunc) (wxString *pIn, wxString *pOut)

Definition at line 25 of file ScriptCommandRelay.h.

◆ tpRegScriptServerFunc

typedef int(* tpRegScriptServerFunc) (tpExecScriptServerFunc pFn)

Definition at line 26 of file ScriptCommandRelay.h.

Function Documentation

◆ ExecForLisp()

void * ExecForLisp ( char *  pIn)

Definition at line 95 of file ScriptCommandRelay.cpp.

96{
97 wxString Str1(pIn);
98 wxString Str2;
99
100 ExecFromMain(&Str1, &Str2);
101
103}
static int ExecFromMain(wxString *pIn, wxString *pOut)
Executes a command on the main (GUI) thread.
void * nyq_reformat_aud_do_response(const wxString &Str)
Definition: Nyquist.cpp:3574
wxString Str2

References ExecFromMain(), nyq_reformat_aud_do_response(), and Str2.

Referenced by xlc_aud_do().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nyq_make_opaque_string()

void * nyq_make_opaque_string ( int  size,
unsigned char *  src 
)

Definition at line 3560 of file Nyquist.cpp.

3560 {
3561 LVAL dst;
3562 unsigned char * dstp;
3563 dst = new_string((int)(size+2));
3564 dstp = getstring(dst);
3565
3566 /* copy the source to the destination */
3567 while (size-- > 0)
3568 *dstp++ = *src++;
3569 *dstp = '\0';
3570
3571 return (void*)dst;
3572}

References size.

◆ nyq_reformat_aud_do_response()

void * nyq_reformat_aud_do_response ( const wxString &  Str)

Definition at line 3574 of file Nyquist.cpp.

3574 {
3575 LVAL dst;
3576 LVAL message;
3577 LVAL success;
3578 wxString Left = Str.BeforeLast('\n').BeforeLast('\n').ToAscii();
3579 wxString Right = Str.BeforeLast('\n').AfterLast('\n').ToAscii();
3580 message = cvstring(Left);
3581 success = Right.EndsWith("OK") ? s_true : nullptr;
3582 dst = cons(message, success);
3583 return (void *)dst;
3584}

Referenced by ExecForLisp().

Here is the caller graph for this function: