nbd_clear_debug_callback3
Clear the debug callback
Usage
#include <libnbd.h>int nbd_clear_debug_callback (struct nbd_handle *h);
Overview
Remove the debug callback if one was previously associated with the handle (with nbd_set_debug_callback(3)). If no callback was associated this does nothing.
Return value
If the call is successful the function returns 0.
Errors
On error -1 is returned.
Refer to "ERROR HANDLING" in libnbd(3) for how to get further details of the error.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
Version
This function first appeared in libnbd 1.0.
If you need to test if this function is available at compile time check if the following macro is defined:
#define LIBNBD_HAVE_NBD_CLEAR_DEBUG_CALLBACK 1
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.