Function regorust::regoAddModuleFile

source ยท
pub unsafe extern "C" fn regoAddModuleFile(
    rego: *mut regoInterpreter,
    path: *const c_char,
) -> regoEnum
Expand description

@brief Adds a module (e.g. virtual document) from the file at the specified path. @details If an error code is returned, more error information can be obtained by calling ::regoError. @param rego The interpreter. @param path The path to the policy file. @return REGO_OK if successful, REGO_ERROR otherwise.