AoFindExt()

Updated: May 06, 2022

Find the control best suited for a specific file extension

Synopsis:

#include <aoi.h>

const AOICtrl_t *AoFindExt(const char *ext,
                           int32_t *rating,
                           const char *oiface,
                           int32_t version);

Arguments:

ext
The file extension for which you want to find the highest rated control.
rating
A pointer to memory for storing the rating, from 0 to 100, for how well the control can inspect the given file extension.
oiface
The name of the interface that the returned control must contain. This argument can be NULL if you don't need an extra interface.
version
The minimum version of the interface specified with the oiface argument; this is ignored if oiface is NULL.

Library:

libaoi.so

Description:

This function finds the control that has an AOExtInspector interface that returns the best rating for the given file extension, and that has the given interface name and minimum version (if specified).

Returns:

A pointer to an AOICtrl_t structure for the control that meets the search criteria, or NULL if no such control is found.

Classification:

QNX Neutrino