L4Re Operating System Framework
Interface and Usage Documentation
|
Direct control interface for Ned. More...
#include <cmd_control>
Inherits L4::Kobject_0t< Derived, PROTO, S_DEMAND >.
Public Member Functions | |
long | execute (L4::Ipc::String<> cmd) noexcept |
Execute the given Lua code. | |
long | execute (L4::Ipc::String<> cmd, L4::Ipc::String< char > *result) noexcept |
Execute the given Lua code. | |
Direct control interface for Ned.
Definition at line 20 of file cmd_control.
|
inlinenoexcept |
Execute the given Lua code.
[in] | cmd | String with Lua code to execute. |
L4_EOK | Code was successfully executed. |
-L4_EINVAL | Code could not be parsed. |
-L4_EIO | Error during code execution. |
The code is executed using the global Lua state of ned which is retained between successive calls to execute. Thus you may define data in one call to execute and use it in a subsequent call.
This function does not return any results from the execution of the Lua code itself.
Definition at line 43 of file cmd_control.
|
inlinenoexcept |
Execute the given Lua code.
[in] | cmd | String with Lua code to execute. |
[out] | result | The first return value of the Lua code block as string. |
L4_EOK | Code was successfully executed. |
-L4_EINVAL | Code could not be parsed. |
-L4_EIO | Error during code execution. |
The code is executed using the global Lua state of ned which is retained between successive calls to execute. Thus you may define data in one call to execute and use it in a subsequent call.
Definition at line 65 of file cmd_control.