Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ AOResourceAccess

Media Vault

Software Library

Restoration Projects

Artifacts Sought

AOResourceAccess

[Previous] [Contents] [Index] [Next]

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.


[Previous] [Contents] [Index] [Next]

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026