AoFindMime()

Find a control with the best rating for a mimetype

Synopsis:

#include <aoi.h>

const AOICtrl_t *AoFindMime(const char *mimetype,
                            int32_t *rating,
                            const char *interface,
                            int32_t version);

Arguments:

mimetype
The mimetype for which you want to find the best rated control.
rating
A pointer to where the function stores the rating, from 0 to 100, of how well the returned control can handle the mimetype.
interface
The interface that the returned control must contain.
version
The minimum version of the interface that the returned control must contain.

Library:

libaoi.so

Description:

This function finds the control that has an AOMimetypeInspector interface that returns the best rating for the given mimetype, and has the given interface and version, if specified.

Returns:

A AOICtrl_t control that meets the search criteria, or NULL if no AOI control is found.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

AoFindExt(), AoFindFormats(), AoFindName(), AoFindStreams() AOICtrl_t