Skip to main content

Function Interface for Lua

Lua implementations use the following interface:

function mod:mm7_pre_submit(msg)

The parameter "msg" is an ec_message. Lua implementations must use the function name mod:mm7_pre_submit.

Function Interface for C

C implementations use the following interface:

static void sample_mm7_submit_req_hook (void *gself, ec_message * m)

Note that in C, unlike Lua, the function name is not significant since the function is registered during module initialization See “MM7 MT Submit Request Hook: C Example”.

Return Values

This hook does not return any values.

Was this page helpful?