This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Add an entry to a function table
#include <display.h> #define DISP_ADD_FUNC(tabletype, table, entry, func, limit) ...
When the graphics framework calls your driver's entry points:
use the DISP_ADD_FUNC() macro to add your driver's functions to the appropriate table:
The DISP_ADD_FUNC() macro adds the function only if there's room for it in the table. If you use this macro, newer drivers that supply more functions will run properly with older versions of Photon that supply smaller function tables.
The arguments are:
DISP_ADD_FUNC (disp_draw_corefuncs_t, &my_contextfuncs, blit1, &my_blit1_fn, tabsize);
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
devg_get_contextfuncs(), devg_get_corefuncs(), devg_get_memfuncs(), devg_get_miscfuncs(), devg_get_modefuncs(), devg_get_vcapfuncs(), devg_get_vidfuncs(), disp_draw_contextfuncs_t, disp_draw_corefuncs_t, disp_draw_miscfuncs_t, disp_memfuncs_t, disp_modefuncs_t, disp_vcapfuncs_t, disp_vidfuncs_t