devg_get_modefuncs()

Get a table of your driver's display control functions

Synopsis:

int devg_get_modefuncs (disp_adapter_t *ctx,
                        disp_modefuncs_t *fns,
                        int tabsize);

Description:

A driver that contains a modeswitcher module must provide an entry point called devg_get_modefuncs(). The graphics framework calls it to get a table of your driver's display control functions.

The arguments are:

ctx
A pointer to the disp_adapter_t structure that describes the graphics adapter.
fns
A pointer to a disp_modefuncs_t structure that your driver must fill with pointers to its modeswitcher functions.
tabsize
The size of the table, in bytes.

Use the DISP_ADD_FUNC() macro to add function pointers to the table. It checks the tabsize argument and adds a function pointer only if there's space for it in the table.

Returns:

0
Success.
-1
An error occurred.

Classification:

Neutrino

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

See also:

disp_adapter_t, DISP_ADD_FUNC(), disp_modefuncs_t