SD_BUS_MESSAGE_SET_EXPECT_REPLY - Online Linux Manual PageSection : 3
Updated :
Source : systemd 250
Note : sd_bus_message_set_expect_reply

NAMEsd_bus_message_set_expect_reply, sd_bus_message_get_expect_reply, sd_bus_message_set_auto_start, sd_bus_message_get_auto_start, sd_bus_message_set_allow_interactive_authorization, sd_bus_message_get_allow_interactive_authorization − Set and query bus message metadata

SYNOPSIS#include <systemd/sd−bus​.h>int sd_bus_message_set_expect_reply(sd_bus_message *message, int b); int sd_bus_message_get_expect_reply(sd_bus_message *message); int sd_bus_message_set_auto_start(sd_bus_message *message, int b); int sd_bus_message_get_auto_start(sd_bus_message *message); int sd_bus_message_set_allow_interactive_authorization(sd_bus_message *message, int b); int sd_bus_message_get_allow_interactive_authorization(sd_bus_message *message);

DESCRIPTIONsd_bus_message_set_expect_reply() sets or clears the NO_REPLY_EXPECTED flag on the message m​. This flag matters only for method call messages and is used to specify that no method return or error reply is expected​. It is ignored for other types​. Thus, for a method call message, calling sd_bus_message_set_expect_reply(​..., 0)sets the flag and suppresses the reply​. sd_bus_message_get_expect_reply() checks if the NO_REPLY_EXPECTED flag is set on the message m​. It will return positive if it is not set, and zero if it is​. sd_bus_message_set_auto_start() sets or clears the NO_AUTO_START flag on the message m​. When the flag is set, the bus must not launch an owner for the destination name in response to this message​. Calling sd_bus_message_set_auto_start(​..., 0)sets the flag​. sd_bus_message_get_auto_start() checks if the NO_AUTO_START flag is set on the message m​. It will return positive if it is not set, and zero if it is​. sd_bus_message_set_allow_interactive_authorization() sets or clears the ALLOW_INTERACTIVE_AUTHORIZATION flag on the message m​. Setting this flag informs the receiver that the caller is prepared to wait for interactive authorization via polkit or a similar framework​. Note that setting this flag does not guarantee that the receiver will actually perform interactive authorization​. Also, make sure to set a suitable message timeout when using this flag since interactive authorization could potentially take a long time as it depends on user input​. If b is non−zero, the flag is set​. sd_bus_message_get_allow_interactive_authorization() checks if the ALLOW_INTERACTIVE_AUTHORIZATION flag is set on the message m​. It will return a positive integer if the flag is set​. Otherwise, it returns zero​.

RETURN VALUEOn success, these functions return a non−negative integer​. On failure, they return a negative errno−style error code​.

ErrorsReturned errors may indicate the following problems: −EINVAL The message parameter is NULL​. −EPERM The message message is sealed when trying to set a flag​. The message message has wrong type​.

NOTESThese APIs are implemented as a shared library, which can be compiled and linked to with the libsystemd ​pkg-config(1) file​.

SEE ALSOsystemd(1), sd-bus(3), sd_bus_set_description(3)
0
Johanes Gumabo
Data Size   :   12,132 byte
man-sd_bus_message_get_expect_reply.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 203,483
Visitor ID   :     :  
Visitor IP   :   18.117.94.221   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.