Guitarix
machine.cpp File Reference
#include "guitarix.h"
#include <sys/mman.h>
#include "jsonrpc_methods.h"
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <malloc.h>
Include dependency graph for machine.cpp:

Go to the source code of this file.

Namespaces

 gx_engine
 

Macros

#define START_NOTIFY(m)   { const jsonrpc_method_def& _md = start_call(RPNM_##m)
 
#define SEND()   assert(!_md.has_result); send(); }
 
#define START_CALL(m)   { const jsonrpc_method_def& _md = start_call(RPCM_##m)
 
#define START_RECEIVE(s)
 
#define END_RECEIVE(s)
 

Functions

void set_memory_allocation ()
 
void lock_rt_memory ()
 
void unlock_rt_memory ()
 
void gx_engine::set_engine_mute (GxEngineState s, BoolParameter &p)
 
void gx_engine::on_engine_mute_changed (bool s, GxEngine &engine)
 
void gx_engine::on_engine_bypass_changed (bool s, GxEngine &engine)
 
void gx_engine::debug_trace_param (Parameter *p)
 

Macro Definition Documentation

◆ END_RECEIVE

#define END_RECEIVE (   s)
Value:
} catch (const gx_system::JsonException& e) { report_rpc_error(jp, e, _md.name); } \
delete jp; s; }}

Definition at line 978 of file machine.cpp.

◆ SEND

#define SEND ( )    assert(!_md.has_result); send(); }

Definition at line 969 of file machine.cpp.

◆ START_CALL

#define START_CALL (   m)    { const jsonrpc_method_def& _md = start_call(RPCM_##m)

Definition at line 971 of file machine.cpp.

◆ START_NOTIFY

#define START_NOTIFY (   m)    { const jsonrpc_method_def& _md = start_call(RPNM_##m)

Definition at line 966 of file machine.cpp.

◆ START_RECEIVE

#define START_RECEIVE (   s)
Value:
assert(_md.has_result); send(); { \
gx_system::JsonStringParser *jp = receive();\
if (!jp) { return s; }\
try {

Definition at line 973 of file machine.cpp.

Function Documentation

◆ lock_rt_memory()

void lock_rt_memory ( )

Definition at line 50 of file machine.cpp.

Referenced by gx_engine::GxMachine::GxMachine().

◆ set_memory_allocation()

void set_memory_allocation ( )

Definition at line 35 of file machine.cpp.

Referenced by lock_rt_memory().

◆ unlock_rt_memory()

void unlock_rt_memory ( )

Definition at line 77 of file machine.cpp.

Referenced by gx_engine::GxMachine::~GxMachine().

gx_system::JsonException
Definition: gx_json.h:40