Function nix_get_attr_byidx

Source
pub unsafe extern "C" fn nix_get_attr_byidx(
    context: *mut nix_c_context,
    value: *const nix_value,
    state: *mut EvalState,
    i: c_uint,
    name: *mut *const c_char,
) -> *mut nix_value
Expand description

Get an attribute by index in the sorted bindings Also gives you the name. Owned by the GC. Use nix_gc_decref when you’re done with the pointer

§Arguments

  • context [out] - Optional, stores error information
  • value [in] - Nix value to inspect
  • state [in] - nix evaluator state
  • i [in] - attribute index
  • name [out] - will store a pointer to the attribute name

§Returns

value, NULL in case of errors