SD_BUS_SLOT_SET_DESTROY_CALLBACK - Online Linux Manual PageSection : 3
Updated :
Source : systemd 250
Note : sd_bus_slot_set_destroy_callback
NAMEsd_bus_slot_set_destroy_callback, sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback, sd_bus_track_get_destroy_callback, sd_bus_destroy_t − Define the callback function for resource cleanup
SYNOPSIS#include <systemd/sd−bus.h>typedef int (*sd_bus_destroy_t)(void *userdata); int sd_bus_slot_set_destroy_callback(sd_bus_slot *slot, sd_bus_destroy_t callback); int sd_bus_slot_get_destroy_callback(sd_bus_slot *slot, sd_bus_destroy_t *callback); int sd_bus_track_set_destroy_callback(sd_bus_track *track, sd_bus_destroy_t callback); int sd_bus_track_get_destroy_callback(sd_bus_track *track, sd_bus_destroy_t *callback);
DESCRIPTIONsd_bus_slot_set_destroy_callback() sets callback as the callback function to be called right before the bus slot object slot is deallocated. The userdata pointer from the slot object will be passed as the userdata parameter. This pointer can be set by an argument to the constructor functions, see sd_bus_add_match(3), or directly, see sd_bus_slot_set_userdata(3). This callback function is called even if userdata is NULL. Note that this callback is invoked at a time where the bus slot object itself is already invalidated, and executing operations or taking new references to the bus slot object is not permissible. sd_bus_slot_get_destroy_callback() returns the current callback for slot in the callback parameter. sd_bus_track_set_destroy_callback() and sd_bus_track_get_destroy_callback() provide equivalent functionality for the userdata pointer associated with bus peer tracking objects. For details about bus peer tracking objects, see sd_bus_track_new(3).
RETURN VALUEOn success, sd_bus_slot_set_destroy_callback() and sd_bus_track_set_destroy_callback() return 0 or a positive integer. On failure, they return a negative errno−style error code. sd_bus_slot_get_destroy_callback() and sd_bus_track_get_destroy_callback() return positive if the destroy callback function is set, 0 if not. On failure, they return a negative errno−style error code.
ErrorsReturned errors may indicate the following problems: −EINVAL The slot or track parameter is NULL.
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_slot_set_floating(3), sd_bus_add_match(3), sd_bus_track_new(3), sd_bus_slot_set_userdata(3), sd_bus_track_set_userdata(3) 0
Johanes Gumabo
Data Size : 11,037 byte
man-sd_bus_slot_get_destroy_callback.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 258,901
Visitor ID : :
Visitor IP : 3.137.198.37 :
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.29
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.