Common Desktop Environment: ToolTalk Messaging Overview

Example for Xt Input Handler Function

Example D-6 is an example for the Xt input handler function.


Example D-6 Xt Input Handler Function Example

int myTtFd; 
char *myProcID; 
myProcID = ttdt_open( &myTtFd, "WhizzyCalc", "Acme", "1.0", 1 );
 /* ... */ 
/* Process the message that started us, if any */ 
tttk_Xt_input_handler( myProcID, 0, 0 ); 
/* ... */ 
XtAppAddInput( myContext, myTtFd, (XtPointer)XtInputReadMask,
                tttk_Xt_input_handler, myProcID );