This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get the value of a resource for a graph or filter
const void *MmGetResourceValue(const void *element, const char *resource);
mmedia
This function gets the resource value data for the resource. The returned value is read-only. You must cast the return value to the proper type.
You can get more complete information for a resource (including type, range, etc.) by using MmGetResource(). Use MmSetResourceValue() to change the value of a resource.
These defined convenience macros make getting specific value types easier:
A pointer to the resource value if successful, NULL otherwise.
Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |