Skip to main content

nix_get_attr_byname

Function nix_get_attr_byname 

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

Get an attr by name @ingroup value_extract Call nix_value_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
  • name [in] - attribute name

§Returns

value, NULL in case of errors