Operating systems, development tools, and professional services
for connected embedded systems

Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation

QNX Community Resources

ApModuleFunction
[Previous] [Contents] [Index] [Next]

ApModuleFunction()

Specify the setup function for a PhAB internal link callback

Synopsis:

#include <Ap.h>

void ApModuleFunction( ApEventLink_t *link_callback,
                       int (*function)(),
                       int realize_flags );

Description:

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.

Examples:

ApModuleFunction( ABM_mydialog, setup_module, AB_FUNC_BOTH );
ApCreateModule( ABM_mydialog, NULL, NULL );

setup_module( PtWidget_t *widget, ... ) {
    /* setup processing for module */
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApCreateModule()


[Previous] [Contents] [Index] [Next]