state_create

Function state_create 

Source
pub unsafe extern "C" fn state_create(
    context: *mut c_context,
    lookupPath: *mut *const c_char,
    store: *mut Store,
) -> *mut EvalState
Expand description

@brief Create a new Nix language evaluator state @ingroup libexpr_init

For more control, use nix_eval_state_builder

@param[out] context Optional, stores error information @param[in] lookupPath Null-terminated array of strings corresponding to entries in NIX_PATH. @param[in] store The Nix store to use. @return A new Nix state or NULL on failure. Call nix_state_free() when you’re done. @see nix_state_builder_new