api

ipc_parser.ch

Declarations in ipc_parser.ch

10 declarationstest

Declarations

Public only
MessageCommandType#
enum
enum MessageCommandType { None, Log, QuitGroup, QuitAll }
to_msg_cmd_type#
function
func to_msg_cmd_type(str : *char) : MessageCommandType
read_msg_type#
function
func read_msg_type(msg_ptr : **char) : MessageCommandType
parse_int_w_end#
function
func parse_int_w_end(s : *char, out : *int, endPtrPtr : **char) : int
return codes: 0 = success (out filled) -1 = bad arguments (null pointers) 1 = no digits found (nothing converted) 2 = trailing non-space characters after number 3 = out of range for int (overflow/underflow)
parse_int_from_str#
function
func parse_int_from_str(pstr : **char) : int
read_char#
function
func read_char(msg_ptr : **char, c : char) : bool
read_str#
function
func read_str(msg_ptr : **char, into : &string) : *char
parseLog#
function
func parseLog(msg_ptr : **char, log : &TestLog) : *char
process_message#
function
func process_message(state : &TestFunctionState, msg : *char) : void
Message format examples: $log,0,10,20,this is a normal log message $log,1,10,20,this is an error log message $log,2,10,20,this is a warning log message $log,3,10,20,this is a info log message $log,4,10,20,this is a success log message $quit_group $quit_all
parse_int#
function
func parse_int(s : *char, out : *int) : int
return codes: 0 = success (out filled) -1 = bad arguments (null pointers) 1 = no digits found (nothing converted) 2 = trailing non-space characters after number 3 = out of range for int (overflow/underflow)