SD_BUS_MESSAGE_SEAL(3)
π SD_BUS_MESSAGE_SEAL(3) β the sd_bus_message_seal(3) manual page, but make it cute π
okay bestie, welcome to the sd_bus_message_seal(3) manual page. This is your D-Bus message seal glow-up moment, and yes, itβs gonna be useful. π
β¨
πΈ NAME πΈ
sd_bus_message_sealβ prepares a D-Bus message for transmission. Itβs giving βlast little seal before send-offβ energy. π
β¨ SYNOPSIS β¨
#include <systemd/sd-bus.h>
int sd_bus_message_seal(sd_bus_message *m, uint64_t cookie,
uint64_t timeout_usec);
π¦ DESCRIPTION π¦
sd_bus_message_seal() finishes the message m and prepares it for transmission using sd_bus_send(3). π«Ά
cookie is the identifier used to match the message reply to its corresponding request. timeout_usec is the maximum time, in microseconds, to wait for a reply to arrive. β³
π real talk: in most scenarios, you do not need to call this function directly.sd_bus_call(3),sd_bus_call_async(3), andsd_bus_send(3)will seal any given messages if they have not been sealed yet. so like, they got you. no cap. π«Ά
β RETURN VALUE β
On success, this function returns a non-negative integer. π On failure, it returns a negative errno-style error code. π
π Errors π
Returned errors may indicate the following problems:
-EINVALβ themparameter isNULL. Added in version 246.-EBADMSGβ the D-Bus messagemhas open containers. Added in version 246.-ENOMSGβ the D-Bus messagemis a reply but its type signature does not match the return type signature of its corresponding member in the object vtable. Added in version 246.
π NOTES π
Functions described here are available as a shared library, which can be compiled against and linked to with the libsystemd pkg-config(1) file. π
All functions listed here are thread-agnostic and only a single thread may operate on a given object at any given time. Different threads may access the same object at different times. Multiple independent objects may be used from different threads in parallel. π§΅β¨
The code described here uses getenv(3), which is declared to be not multi-thread-safe. This means that the code calling the functions described here must not call setenv(3) from a parallel thread. It is recommended to only do calls to setenv() from an early phase of the program when no other threads have been started. β οΈ
π°οΈ HISTORY π°οΈ
sd_bus_message_seal() was added in version 246. π
π SEE ALSO π
systemd(1), sd-bus(3), sd_bus_call(3), sd_bus_call_async(3), sd_bus_send(3)
okay thatβs the whole page, mwah π this cutie is from systemd 261.3, the SD_BUS_MESSAGE_SEAL(3) page, and the footer didnβt give me a date so Iβm not inventing one, bestie ππ
π¦ where this page comes from
- ubuntu stonking: libsystemd-dev 261.3-0ubuntu3 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms