Modules and Top-level Methods
Modules
D-Bus |
|
evdev |
|
Core events |
|
File events |
|
hwinfo |
|
Logging |
|
Lua scripting |
|
misc |
|
OS environment |
|
Get roots |
|
Spawn child processes |
|
udev |
|
Xorg |
Methods
Change working directory |
|
Execute another binary |
|
Exit deai |
|
Load a single plugin |
|
Load plugins from a directory |
|
Exit deai |
|
Register a module |
- chdir(dir) integer
- Return type:
integer
- Parameters:
dir (string)
Change working directory
- exec(argv) integer
- Return type:
integer
- Parameters:
argv ([string])
Execute another binary
This call replaces the current process by running another binary. One use case for this is to restart deai.
- exit(exit_code) void
- Return type:
void
- Parameters:
exit_code (integer)
Exit deai
Instruct deai to exit. deai won’t exit immediately when the function is called, it will exit next time the control returns to the mainloop. (e.g. after your script finished running).
- load_plugin(file) void
- Return type:
void
- Parameters:
file (string)
Load a single plugin
- load_plugin_from_dir(path) integer
- Return type:
integer
- Parameters:
path (string)
Load plugins from a directory
- quit() void
- Return type:
void
Exit deai
Equivalent to
exit(0)
- register_module(name, module) integer
- Return type:
integer
- Parameters:
name (string)
module (
module)
Register a module