diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-03-31 21:06:02 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-01 00:11:33 +0200 |
commit | e3e5a6eebd56a8eea336f9a4e38b8e53b519c2e0 (patch) | |
tree | 0052c67492982559fee0c814f514b36b1bfdd3f3 /man | |
parent | Merge pull request #15229 from ssahani/mud (diff) | |
download | systemd-e3e5a6eebd56a8eea336f9a4e38b8e53b519c2e0.tar.xz systemd-e3e5a6eebd56a8eea336f9a4e38b8e53b519c2e0.zip |
sd-bus: Add sd_bus_get/set_priority docs + fixes
Diffstat (limited to 'man')
-rw-r--r-- | man/rules/meson.build | 2 | ||||
-rw-r--r-- | man/sd-bus.xml | 4 | ||||
-rw-r--r-- | man/sd_bus_message_set_destination.xml | 27 |
3 files changed, 28 insertions, 5 deletions
diff --git a/man/rules/meson.build b/man/rules/meson.build index db90073f36..ee8c236744 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -289,7 +289,9 @@ manpages = [ 'sd_bus_message_get_interface', 'sd_bus_message_get_member', 'sd_bus_message_get_path', + 'sd_bus_message_get_priority', 'sd_bus_message_get_sender', + 'sd_bus_message_set_priority', 'sd_bus_message_set_sender'], ''], ['sd_bus_message_set_expect_reply', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index 48f4a2a84f..c649bc46fe 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -67,6 +67,8 @@ <citerefentry><refentrytitle>sd_bus_message_dump</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_get_cookie</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_get_monotonic_usec</refentrytitle><manvolnum>3</manvolnum></citerefentry>, +<citerefentry><refentrytitle>sd_bus_message_get_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>, +<citerefentry><refentrytitle>sd_bus_message_get_sender</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_get_signature</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_get_type</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, @@ -79,6 +81,8 @@ <citerefentry><refentrytitle>sd_bus_message_rewind</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_seal</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_set_destination</refentrytitle><manvolnum>3</manvolnum></citerefentry>, +<citerefentry><refentrytitle>sd_bus_message_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>, +<citerefentry><refentrytitle>sd_bus_message_set_sender</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_set_expect_reply</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_skip</refentrytitle><manvolnum>3</manvolnum></citerefentry>, <citerefentry><refentrytitle>sd_bus_message_verify_type</refentrytitle><manvolnum>3</manvolnum></citerefentry>, diff --git a/man/sd_bus_message_set_destination.xml b/man/sd_bus_message_set_destination.xml index ca3e466d7a..126778fc3c 100644 --- a/man/sd_bus_message_set_destination.xml +++ b/man/sd_bus_message_set_destination.xml @@ -19,6 +19,8 @@ <refname>sd_bus_message_get_path</refname> <refname>sd_bus_message_get_interface</refname> <refname>sd_bus_message_get_member</refname> + <refname>sd_bus_message_set_priority</refname> + <refname>sd_bus_message_get_priority</refname> <refname>sd_bus_message_set_sender</refname> <refname>sd_bus_message_get_sender</refname> @@ -56,6 +58,18 @@ </funcprototype> <funcprototype> + <funcdef>int <function>sd_bus_message_set_priority</function></funcdef> + <paramdef>sd_bus_message *<parameter>message</parameter></paramdef> + <paramdef>int64_t <parameter>priority</parameter></paramdef> + </funcprototype> + + <funcprototype> + <funcdef>int <function>sd_bus_message_get_priority</function></funcdef> + <paramdef>sd_bus_message *<parameter>message</parameter></paramdef> + <paramdef>int64_t *<parameter>priority</parameter></paramdef> + </funcprototype> + + <funcprototype> <funcdef>int <function>sd_bus_message_set_sender</function></funcdef> <paramdef>sd_bus_message *<parameter>message</parameter></paramdef> <paramdef>const char *<parameter>sender</parameter></paramdef> @@ -82,11 +96,13 @@ member fields from <parameter>message</parameter> header. The return value will be <constant>NULL</constant> is <parameter>message</parameter> is <constant>NULL</constant> or the message is of a type that doesn't use those fields or the message doesn't have them set. See - <citerefentry><refentrytitle>sd_bus_message_new_method_call</refentrytitle><manvolnum>3</manvolnum></citerefentry> - and + <citerefentry><refentrytitle>sd_bus_message_new_method_call</refentrytitle><manvolnum>3</manvolnum></citerefentry> and <citerefentry><refentrytitle>sd_bus_message_set_destination</refentrytitle><manvolnum>3</manvolnum></citerefentry> for more discussion of those values.</para> + <para><function>sd_bus_message_set_priority()</function> and + <function>sd_bus_message_get_priority()</function> modify and query a message's priority + respectively. sd-bus currently doesn't make use of a message's priority.</para> <para><function>sd_bus_message_set_sender()</function> sets the sender service name for the specified bus message object. The specified name must be a valid unique or well-known service name. This function is useful only for @@ -123,9 +139,10 @@ <varlistentry> <term><constant>-EPERM</constant></term> - <listitem><para>For <function>sd_bus_message_set_destination</function> or - <function>sd_bus_message_set_sender</function>, the message is already - sealed.</para></listitem> + <listitem><para>For <function>sd_bus_message_set_destination()</function>, + <function>sd_bus_message_set_sender()</function> and + <function>sd_bus_message_set_priority()</function>, the message is already sealed.</para> + </listitem> </varlistentry> <varlistentry> |