AoFindExt()

Find a control with a AOExtInspector interface, and which is best suited for a specific file extension

Synopsis:

#include <aoi.h>
const AOICtrl_t *AoFindExt(const char *extension,
                           int32_t *rating,
                           const char *interface,
                           int32_t version);

Arguments:

extension
The file extension you want to inspect.
rating
A pointer to where the function stores the returned rating for how well the control can inspect the given ext.
interface
The name of the interface the control must have.
version
The minimum interface version the control must have.

Library:

libaoi.so

Description:

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

Returns:

A pointer to an AOICtrl_t control, or NULL if no control is found.

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

AOICtrl_t, AoFindFormats(), AoFindMime(), AoFindName(), AoFindStreams()