From 11a177d9de8f79a08452f6972b104fe225c75587 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 2 Apr 2020 21:36:59 +0200 Subject: [PATCH] sd-bus: Deprecate priority functions --- man/rules/meson.build | 2 -- man/sd-bus.xml | 2 -- man/sd_bus_message_set_destination.xml | 23 ++--------------------- src/systemd/sd-bus.h | 6 +++--- 4 files changed, 5 insertions(+), 28 deletions(-) diff --git a/man/rules/meson.build b/man/rules/meson.build index 5620ba1e5bf..9cdfe5d2919 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -291,9 +291,7 @@ 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 a5f493b2cee..4f1d8355d68 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -70,7 +70,6 @@ sd_bus_message_dump3, sd_bus_message_get_cookie3, sd_bus_message_get_monotonic_usec3, -sd_bus_message_get_priority3, sd_bus_message_get_sender3, sd_bus_message_get_signature3, sd_bus_message_get_type3, @@ -84,7 +83,6 @@ sd_bus_message_rewind3, sd_bus_message_seal3, sd_bus_message_set_destination3, -sd_bus_message_set_priority3, sd_bus_message_set_sender3, sd_bus_message_set_expect_reply3, sd_bus_message_skip3, diff --git a/man/sd_bus_message_set_destination.xml b/man/sd_bus_message_set_destination.xml index 126778fc3ce..51da5ff3b89 100644 --- a/man/sd_bus_message_set_destination.xml +++ b/man/sd_bus_message_set_destination.xml @@ -19,8 +19,6 @@ sd_bus_message_get_path sd_bus_message_get_interface sd_bus_message_get_member - sd_bus_message_set_priority - sd_bus_message_get_priority sd_bus_message_set_sender sd_bus_message_get_sender @@ -57,18 +55,6 @@ sd_bus_message *message - - int sd_bus_message_set_priority - sd_bus_message *message - int64_t priority - - - - int sd_bus_message_get_priority - sd_bus_message *message - int64_t *priority - - int sd_bus_message_set_sender sd_bus_message *message @@ -100,10 +86,6 @@ sd_bus_message_set_destination3 for more discussion of those values. - sd_bus_message_set_priority() and - sd_bus_message_get_priority() modify and query a message's priority - respectively. sd-bus currently doesn't make use of a message's priority. - sd_bus_message_set_sender() 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 messages to send on direct connections as for connections to bus brokers the broker will fill in the destination @@ -139,9 +121,8 @@ -EPERM - For sd_bus_message_set_destination(), - sd_bus_message_set_sender() and - sd_bus_message_set_priority(), the message is already sealed. + For sd_bus_message_set_destination() and + sd_bus_message_set_sender(), the message is already sealed. diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index bc58a5fc9c5..cd307dbd566 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -204,7 +204,7 @@ int sd_bus_get_fd(sd_bus *bus); int sd_bus_get_events(sd_bus *bus); int sd_bus_get_timeout(sd_bus *bus, uint64_t *timeout_usec); int sd_bus_process(sd_bus *bus, sd_bus_message **r); -int sd_bus_process_priority(sd_bus *bus, int64_t max_priority, sd_bus_message **r); +int sd_bus_process_priority(sd_bus *bus, int64_t max_priority, sd_bus_message **r) _sd_deprecated_; /* deprecated */ int sd_bus_wait(sd_bus *bus, uint64_t timeout_usec); int sd_bus_flush(sd_bus *bus); int sd_bus_enqueue_for_read(sd_bus *bus, sd_bus_message *m); @@ -272,7 +272,7 @@ int sd_bus_message_seal(sd_bus_message *m, uint64_t cookie, uint64_t timeout_use int sd_bus_message_get_type(sd_bus_message *m, uint8_t *type); int sd_bus_message_get_cookie(sd_bus_message *m, uint64_t *cookie); int sd_bus_message_get_reply_cookie(sd_bus_message *m, uint64_t *cookie); -int sd_bus_message_get_priority(sd_bus_message *m, int64_t *priority); +int sd_bus_message_get_priority(sd_bus_message *m, int64_t *priority) _sd_deprecated_; /* deprecated */ int sd_bus_message_get_expect_reply(sd_bus_message *m); int sd_bus_message_get_auto_start(sd_bus_message *m); @@ -306,7 +306,7 @@ int sd_bus_message_set_allow_interactive_authorization(sd_bus_message *m, int b) int sd_bus_message_set_destination(sd_bus_message *m, const char *destination); int sd_bus_message_set_sender(sd_bus_message *m, const char *sender); -int sd_bus_message_set_priority(sd_bus_message *m, int64_t priority); +int sd_bus_message_set_priority(sd_bus_message *m, int64_t priority) _sd_deprecated_; /* deprecated */ int sd_bus_message_append(sd_bus_message *m, const char *types, ...); int sd_bus_message_appendv(sd_bus_message *m, const char *types, va_list ap);