Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
AOResourceAccess

AOResourceAccess

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

AOResourceAccess

Functions to get or set resources

Synopsis:

static AOResourceAccess media_filter =
{
    GetResources,
    SetResource
};

Description:

This interface defines the functions required to access (read and write) resources for a filter.

GetResources()

const AOResource_t *(*GetResources)(void *handle);

This function should return the 0-value terminated list of resources for the given addon handle. Before extracting the values, cast the void* pointer to the appropriate type.

SetResource()

int32_t (*SetResource)(void *handle,
                       const char *resource,
                       const void *data);

This function should set the resource for the given addon (handle) to the data specified. You must cast the data pointer to the appropriate type to set the resource values.

If successful, this function should return 0.

Classification:

Neutrino

See also:

AoDeConstructor

Extending the Multimedia Framework.