object_resolve_path_type

Function object_resolve_path_type 

Source
pub unsafe extern "C" fn object_resolve_path_type(
    path: *const i8,
    typename: *const i8,
    ambiguous: *mut bool,
) -> *mut Object
Expand description

object_resolve_path_type: @path: the path to resolve @typename: the type to look for. @ambiguous: returns true if the path resolution failed because of an ambiguous match

This is similar to object_resolve_path. However, when looking for a partial path only matches that implement the given type are considered. This restricts the search and avoids spuriously flagging matches as ambiguous.

For both partial and absolute paths, the return value goes through a dynamic cast to @typename. This is important if either the link, or the typename itself are of interface types.

Returns: The matched object or NULL on path lookup failure.