Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 8
Add an entry to a function table
#include <graphics/display.h>
#define DISP_ADD_FUNC(tabletype, table, entry, func, limit) …
When the graphics framework calls your driver's primary 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 the graphics framework that supply smaller function
tables.
The arguments are:
- tabletype
- The data type for the table (e.g. disp_draw_contextfuncs_t).
- table
- A pointer to the instance of the table that you want to add the function
to.
- entry
- The name of the entry you want to set in the table
(e.g. draw_span).
- func
- A pointer to the function that your driver provides.
- limit
- The size of the table, in bytes.
DISP_ADD_FUNC (disp_draw_corefuncs_t,
&my_contextfuncs, blit1,
&my_blit1_fn, tabsize);
Neutrino
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(),
disp_draw_contextfuncs_t,
disp_draw_corefuncs_t,
disp_draw_miscfuncs_t,
disp_memfuncs_t,
disp_modefuncs_t,
disp_vcapfuncs_t,
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 155
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/disp_add_func.html on line 155