gc_decref

Function gc_decref 

Source
pub unsafe extern "C" fn gc_decref(
    context: *mut c_context,
    object: *const c_void,
) -> err
Expand description

@brief Decrement the garbage collector reference counter for the given object

@deprecated We are phasing out the general nix_gc_decref() in favor of type-specified free functions, such as nix_value_decref().

We also provide typed nix_*_decref functions, which are

  • safer to use
  • easier to integrate when deriving bindings
  • allow more flexibility

@param[out] context Optional, stores error information @param[in] object The object to stop referencing