Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

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.