![]() |
![]() |
![]() |
![]() |
OMadd_named_funcs
Synopsis
void OMadd_named_funcs ( OMfunc_table *table_name,
unsigned int number_of_entries );Description
OMadd_named_funcs adds several entries to AVS/Express' internal table that maps functions to function identifiers.This internal table is constructed by code that AVS/Express generates. User code does not typically have to use this routine directly.Arguments
table_nameA set of function-to-identifier mappings.The table should be defined as follows:OMfunc_table table_name[] = { { (OMpfi)function, "identifier" }, { (OMpfi)function, "identifier" }; ...};If an identifier already exists in AVS/Express' internal table, AVS/Express prints a warning message and replaces the existing entry.
number_of_entriesReturned value
A pointer to the array, or NULL if ARRalloc failed.Examples
/* Add a table of entries to the function-identifier table. */static OMfunc_table user_funcs[] = { { (OMpfi)add_num, "add numbers" }, { (OMpfi)subtract_num, "subtract numbers" }};...OMadd_named_funcs(user_funcs, (sizeof(usr_funcs)/sizeof(OMfunc_table)));
See Also
![]() |
![]() |
![]() |
![]() |