wavelength 1.0.0
Loading...
Searching...
No Matches
DataFunc.h File Reference
#include "utl/Data.h"
#include "utl/Str.h"
Include dependency graph for DataFunc.h:

Go to the source code of this file.

Classes

struct  FuncDesc
 Registered script command. More...

Typedefs

typedef void(* DataFunc) (DataArray *args, void *data)
 Handler of a script command.

Functions

void DataRegisterFunc (DataFunc func, const char *name, void *data)
 Register a script command.
bool DataExecute (DataArray *args)
 Run the script command an array names in its first node.

Typedef Documentation

◆ DataFunc

typedef void(* DataFunc) (DataArray *args, void *data)

Handler of a script command.

Parameters
argsThe command, its name first.
dataThe data the handler was registered with.

Function Documentation

◆ DataRegisterFunc()

void DataRegisterFunc ( DataFunc func,
const char * name,
void * data )

Register a script command.

Parameters
funcThe handler.
nameThe command's name.
dataPassed to the handler.
Ghidra address:
0x10019cb0

◆ DataExecute()

bool DataExecute ( DataArray * args)

Run the script command an array names in its first node.

An unknown command prints a message.

Parameters
argsThe command.
Returns
Whether the command is registered.
Ghidra address:
0x10019d90