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 94 of file ScriptCommandRelay.cpp.

95{
96 wxString Str1(pIn);
97 wxString Str2;
98
99 ExecFromMain(&Str1, &Str2);
100
102}
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:3533
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 3519 of file Nyquist.cpp.

3519 {
3520 LVAL dst;
3521 unsigned char * dstp;
3522 dst = new_string((int)(size+2));
3523 dstp = getstring(dst);
3524
3525 /* copy the source to the destination */
3526 while (size-- > 0)
3527 *dstp++ = *src++;
3528 *dstp = '\0';
3529
3530 return (void*)dst;
3531}

References size.

◆ nyq_reformat_aud_do_response()

void * nyq_reformat_aud_do_response ( const wxString &  Str)

Definition at line 3533 of file Nyquist.cpp.

3533 {
3534 LVAL dst;
3535 LVAL message;
3536 LVAL success;
3537 wxString Left = Str.BeforeLast('\n').BeforeLast('\n').ToAscii();
3538 wxString Right = Str.BeforeLast('\n').AfterLast('\n').ToAscii();
3539 message = cvstring(Left);
3540 success = Right.EndsWith("OK") ? s_true : nullptr;
3541 dst = cons(message, success);
3542 return (void *)dst;
3543}

Referenced by ExecForLisp().

Here is the caller graph for this function: