diff options
| author | Michael Biebl <biebl@debian.org> | 2021-02-11 18:11:46 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2021-02-11 18:11:46 +0100 |
| commit | 80ec1decc49c72efec2a8b87c06245c92c0ab807 (patch) | |
| tree | e3b229aa94e8dcf0590f2317664176e7b8f7607b /docs/libnm/html/NMClient.html | |
| parent | 65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (diff) | |
New upstream version 1.29.90 upstream/1.29.90
Diffstat (limited to 'docs/libnm/html/NMClient.html')
| -rw-r--r-- | docs/libnm/html/NMClient.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/libnm/html/NMClient.html b/docs/libnm/html/NMClient.html index 1d2f15b3..7e7c131d 100644 --- a/docs/libnm/html/NMClient.html +++ b/docs/libnm/html/NMClient.html @@ -793,6 +793,14 @@ <a class="link" href="NMClient.html#nm-client-dbus-set-property-finish" title="nm_client_dbus_set_property_finish ()">nm_client_dbus_set_property_finish</a> <span class="c_punctuation">()</span> </td> </tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMClient.html#nm-utils-print" title="nm_utils_print ()">nm_utils_print</a> <span class="c_punctuation">()</span> +</td> +</tr> </tbody> </table></div> </div> @@ -4957,6 +4965,45 @@ nm_client_dbus_set_property_finish (<em class="parameter"><code><a class="link" </div> <p class="since">Since: 1.24</p> </div> +<hr> +<div class="refsect2"> +<a name="nm-utils-print"></a><h3>nm_utils_print ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_utils_print (<em class="parameter"><code><span class="type">int</span> output_mode</code></em>, + <em class="parameter"><code>const <span class="type">char</span> *msg</code></em>);</pre> +<p>The only purpose of this function is to give access to <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print"><code class="function">g_print()</code></a> +or <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a> from pygobject. libnm can do debug logging by +setting LIBNM_CLIENT_DEBUG and uses thereby <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a> or +<a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print"><code class="function">g_print()</code></a>. A plain "<code class="function">print()</code>" function in python is not in sync +with these functions (it implements additional buffering). By +using <a class="link" href="NMClient.html#nm-utils-print" title="nm_utils_print ()"><code class="function">nm_utils_print()</code></a>, the same logging mechanisms can be used.</p> +<div class="refsect3"> +<a name="nm-utils-print.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>output_mode</p></td> +<td class="parameter_description"><p>if 1 it uses <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print"><code class="function">g_print()</code></a>. If 2, it uses <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a>. +If 0, it uses either <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print"><code class="function">g_print()</code></a> or <a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a>, depending +on LIBNM_CLIENT_DEBUG (and the "stdout" flag).</p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>msg</p></td> +<td class="parameter_description"><p>the message to print. The function does not append +a trailing newline.</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<p class="since">Since: 1.30</p> +</div> </div> <div class="refsect1"> <a name="NMClient.other_details"></a><h2>Types and Values</h2> |