Previous Topic: FormatNext Topic: Arguments


Description

CMUserInit initializes the link between the Event Notification Services daemon and your action routine. The readroutine is called whenever an event destined for the action routine occurs. Exceptions and errors are notified via the errorroutine. In an X-Windows environment, the use of the CMUserMainLoop call is preferable to XtAppMainLoop. In this situation, supply the X11appcontext value, otherwise it must be NULL. The Console Manager context for use in all the other calls will be returned in context.

A call to this routine is mandatory for all action routines. The action routine must also make this call within the action timeout period defined in the Console Manager database. Otherwise, the Event Notification Services daemon assumes the action is not going to start and it attempts to start another instance of the action when the next event occurs.