sd_bus_get_current_handler, sd_bus_get_current_message, sd_bus_get_current_slot, sd_bus_get_current_userdata — Query information of the callback a bus object is currently running
Whenever sd-bus is about to invoke a user-supplied callback function, it stores the
current callback, D-Bus message, slot and userdata pointer and allows these to be queried via
sd_bus_get_current_userdata(), respectively. If
cannot be resolved or if execution does not reside in a user-supplied callback of
bus, these functions return
On success, these functions return the requested object. On failure, they return
Functions described here are available as a shared
library, which can be compiled against and linked to with the
The code described here uses
which is declared to be not multi-thread-safe. This means that the code calling the functions described
here must not call
from a parallel thread. It is recommended to only do calls to
from an early phase of the program when no other threads have been started.
sd_bus_get_current_userdata() were added in version 246.