From a54aedafc2738a4ce5cba078a9bfa632e3ced85b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 3 Jan 2026 11:46:13 +0000 Subject: [PATCH] python: Link to C man pages for module functions Since first writing the Python documentation, we now have much more consistent coverage of the underlying C functions in separate man pages, so link to those consistently here. (cherry picked from commit 458928a627718b30456c47300366137d1dc2c109) --- plugins/python/nbdkit-python-plugin.pod | 45 ++++++++++++++++++++----- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/plugins/python/nbdkit-python-plugin.pod b/plugins/python/nbdkit-python-plugin.pod index 0bc99bdc..87750ea1 100644 --- a/plugins/python/nbdkit-python-plugin.pod +++ b/plugins/python/nbdkit-python-plugin.pod @@ -119,46 +119,62 @@ methods in the C module: Send a debug message to stderr or syslog if verbose messages are enabled. +See: L + =head3 C Disconnect from the client. If C is C then nbdkit will disconnect the client immediately. +See: L + =head3 C Return the export name negotiated with the client as a Unicode string. Note this should not be trusted because the client can send whatever it wants. +See: L + =head3 C Returns C if the client completed TLS authentication, or C if the connection is plaintext. +See: L + =head3 C Sleep for seconds and nanoseconds. +See: L + =head3 C Parse a human-readable boolean (such as "yes" or "false"), returning C or C. Wraps the L function. +See: L + =head3 C Parse a delay or sleep (such as "10ms") into a pair (sec, nsec). Wraps the L function. +See: L + =head3 C -Parse a string (such as "100M") into a size in bytes. Wraps the -L C function. +Parse a string (such as "100M") into a size in bytes. + +See: L =head3 C Parse a string (such as "100%") into a probability, returning a -floating point number. Wraps the L -function. +floating point number. + +See: L =head3 C, C, @@ -171,22 +187,27 @@ Unix domain socket, and then only on some operating systems. The security context is usually the SELinux label, IPSEC label or NetLabel. +See: L, L, +L and L + =head3 C Return the client TLS Distinguished Name. -See L. + +See: L =head3 C Return the client certificate issuer's TLS Distinguished Name. -See L. + +See: L =head3 C Read a password from a config parameter. This returns the password as -a Python C object. See L for more -information on the different ways that the C parameter can be -parsed. +a Python C object. + +See: L =head3 C @@ -201,15 +222,21 @@ C: nbdkit.set_error(errno.EPERM) raise RuntimeError() +See: L + =head3 C Request asynchronous server shutdown. +See: L + =head3 C Returns C if it is safe to interact with stdin and stdout during the configuration phase. +See: L + =head2 Module constants After C the following constants are available. These -- 2.47.3