API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IRESFILE_GETNAMEDSOURCEV()

Brew Release
Brew MP 1.0.2
See Also
IResFile IResFile_GetNamedSource()
Description

Gets a named source from a resource file. Names for a resources can be given as a variable set of, null terminated, string arguments. Each string specifies one or more levels in the naming tree. A simple string without '.' characters specifies a single level in the naming tree where as a dot separated set of names in a string specify a series of names in the naming tree.
Params
pif
[]:
[in] A pointer to an IResFile object.
restype
[]:
[in] Type of the resource to be loaded
ppif
[]:
[out] A pointer to a destination for the resulting ISource pointer
args
[]:
[in] Variable argument list containing the names for the resources

Interface
Prototype
  •    int IResFile_GetNamedSourceV(IResFile *pif, uint16 restype, ISource **ppif, va_list *args);
    
Return
  •    AEE_SUCCESS: Resource was found and loaded
       AEE_EFAILED: Resource could not be found or failed to load
       ENOTSUPPORT: Sources are not supported for this resource file
       ENOMEMORY:   Memory could not be allocated for the source result
    
Side Effect
  • None
Comments
Refer to IResFile_GetNamedSource() for a simplified version of this function without using the varg parameter.