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:3577
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 3563 of file Nyquist.cpp.

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

References size.

◆ nyq_reformat_aud_do_response()

void * nyq_reformat_aud_do_response ( const wxString &  Str)

Definition at line 3577 of file Nyquist.cpp.

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

Referenced by ExecForLisp().

Here is the caller graph for this function: