Skip to main content

nix_gc_decref

Function nix_gc_decref 

Source
pub unsafe extern "C" fn nix_gc_decref(
    context: *mut nix_c_context,
    object: *const c_void,
) -> nix_err
Expand description

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

ยงArguments

  • context [out] - Optional, stores error information
  • object [in] - The object to stop referencing