diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-07-07 21:53:38 +0800 |
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-07-18 06:32:03 +0800 |
| commit | 06947ddeac654c76940c09d38cb0e5f435e28495 (patch) | |
| tree | 453921b23652a89b137e1ff5b88850749bfef524 /lib/frrscript.h | |
| parent | 24ff8520af692c538f3ff8b3339a307c21a7fa38 (diff) | |
lib: Add frrscript_get_result
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrscript.h')
| -rw-r--r-- | lib/frrscript.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/frrscript.h b/lib/frrscript.h index 1e35e2ee41..d2791a5a8b 100644 --- a/lib/frrscript.h +++ b/lib/frrscript.h @@ -233,8 +233,9 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs); * Returns: * The script result of the specified name and type, or NULL. */ -void *frrscript_get_result(struct frrscript *fs, - const struct frrscript_env *result); +void *frrscript_get_result(struct frrscript *fs, const char *function_name, + const char *name, + void *(*lua_to)(lua_State *L, int idx)); #ifdef __cplusplus } |
