| Line | |
|---|
| 1 |
<module> |
|---|
| 2 |
<name>lua</name> |
|---|
| 3 |
<description><para>The lua module is a loader that allows the authoring of checks in Lua.</para></description> |
|---|
| 4 |
<loader>C</loader> |
|---|
| 5 |
<image>lua.so</image> |
|---|
| 6 |
<moduleconfig> |
|---|
| 7 |
<parameter name="directory" |
|---|
| 8 |
required="optional" |
|---|
| 9 |
default="/install/prefix/modules-lua/?.lua" |
|---|
| 10 |
allowed=".+">This is the lua load path. See the lua manual for more details on meaning and syntax.</parameter> |
|---|
| 11 |
</moduleconfig> |
|---|
| 12 |
<checkconfig /> |
|---|
| 13 |
<examples> |
|---|
| 14 |
<example> |
|---|
| 15 |
<title>Loading the lua loader.</title> |
|---|
| 16 |
<para>This example loads the lua VM and registers it as a module loader.</para> |
|---|
| 17 |
<programlisting><![CDATA[ |
|---|
| 18 |
<noit> |
|---|
| 19 |
<modules> |
|---|
| 20 |
<module image="lua" name="lua"> |
|---|
| 21 |
<config> |
|---|
| 22 |
<directory>/some/other/path/?.lua</directory> |
|---|
| 23 |
</config> |
|---|
| 24 |
</module> |
|---|
| 25 |
</modules> |
|---|
| 26 |
</noit> |
|---|
| 27 |
]]></programlisting> |
|---|
| 28 |
</example> |
|---|
| 29 |
</examples> |
|---|
| 30 |
</module> |
|---|