Function panda_sys::object_resolve_path_type[][src]

pub unsafe extern "C" fn object_resolve_path_type(
    path: *const c_char,
    typename: *const c_char,
    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.