Specify the setup function for a PhAB internal link callback
#include <Ap.h> void ApModuleFunction( ApEventLink_t *link_callback, int (*function)(), int realize_flags );
ApModuleFunction() is used to specify the setup function for a PhAB internal link callback. The realize_flags argument indicates when the setup function should be called:
When you create an internal link callback, PhAB lets you specify the setup function. ApModuleFunction() lets you change that setup function. The new function is retained until changed again.
ApModuleFunction( ABM_mydialog, setup_module, AB_FUNC_BOTH ); ApCreateModule( ABM_mydialog, NULL, NULL ); setup_module( PtWidget_t *widget, ... ) { /* setup processing for module */ }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |