lua: add Port.get_direction() + documentation for it

This commit is contained in:
George Kiagiadakis
2021-06-30 19:49:48 +03:00
parent 532340cc8f
commit 888d6e5033
3 changed files with 32 additions and 0 deletions

View File

@@ -115,6 +115,19 @@ Lua objects that bind a :ref:`WpNode <node_api>` contain the following methods:
:param self: the proxy
:param string command: the command to send to the node (ex "Suspend")
PipeWire Port
.............
Lua objects that bind a :ref:`WpPort <port_api>` contain the following methods:
.. function:: Port.get_direction(self)
Binds :c:func:`wp_port_get_direction`
:param self: the port
:returns: the direction of the Port
:rtype: string (:c:enum:`WpDirection`)
PipeWire Client
...............