Revert "api: module: support loading arguments from file"

This reverts commit 2ae1b3cbd9.

This is not a good API. It was only allowed temporarily in 0.4.15
to get things done. We should approach this properly in 0.5
This commit is contained in:
George Kiagiadakis
2023-10-24 11:55:52 +03:00
parent 22cb31571d
commit dbf8204cf9
4 changed files with 3 additions and 84 deletions

View File

@@ -11,7 +11,7 @@ dropped, the module is unloaded.
Constructors
~~~~~~~~~~~~
.. function:: LocalModule(name, arguments, properties, [load_args_from_file])
.. function:: LocalModule(name, arguments, properties)
Loads the named module with the provided arguments and properties (either of
which can be ``nil``).
@@ -21,7 +21,6 @@ Constructors
module arguments
:param table properties: can be ``nil`` or a table that can be
:ref:`converted <lua_gobject_lua_to_c>` to :c:struct:`WpProperties`
:param load_args_from_file: (since 0.4.15) optional. if true, arguments param is treated as a file path to load args from
:returns: a new LocalModule
:rtype: LocalModule (:c:struct:`WpImplModule`)
:since: 0.4.2