Skip to main content

Function Interface for Lua

function mod:mm7_request_eval(trx)

The parameter trx is the type of "mm7_transaction" defined in “Purpose”.

Function Interface for C

The C implementation uses the following interface:

static int sample_mm7_request_eval_hook(void* gself, mm7_transaction* trx)

This hook is the same as the other C hooks. The function name is not significant as long as it is registered during module initialization. See “MM7 Server Received Message Hook: C Example”.

Was this page helpful?