| 1 |
|
| 2 |
<HTML> |
| 3 |
<HEAD> |
| 4 |
<TITLE>XPA/Xt Interface</TITLE> |
| 5 |
</HEAD> |
| 6 |
<BODY> |
| 7 |
|
| 8 |
|
| 9 |
<H2><A NAME="xpatcl">XPAXt: the XPA Interface to Xt (X Windows)</A></H2> |
| 10 |
|
| 11 |
|
| 12 |
<H2>Summary</H2> |
| 13 |
Describes how XPA access points can be added to X Toolkit (Xt) programs. |
| 14 |
|
| 15 |
|
| 16 |
<H2>Description</H2> |
| 17 |
<P> |
| 18 |
XPA supports Xt programs: you can call XPANew(), XPACmdNew(), or |
| 19 |
XPAInfoNew() within any C routine to add XPA server callbacks to an Xt |
| 20 |
program. Since an Xt program has its own event loop call (i.e., |
| 21 |
XtAppMainLoop()), it therefore does not need or want to use the XPA |
| 22 |
even loop. Thus, in order to add XPA access points to the standard Xt |
| 23 |
event loop, the following routine should be called before entering the |
| 24 |
loop: |
| 25 |
<PRE> |
| 26 |
int XPAXtAddInput(XtAppContext app, XPA xpa) |
| 27 |
</PRE> |
| 28 |
<P> |
| 29 |
The XPAAddAddInput() routine will add XPA access points to the Xt event |
| 30 |
loop by making calls to the standard XtAppAddInput() routine. (If the |
| 31 |
XtAppContext argument is NULL, then the alternate XtAddInput() routine |
| 32 |
is used instead.) If the xpa argument is NULL, then all active XPA |
| 33 |
access points are added to the loop. If xpa is not NULL, then only |
| 34 |
the specified access point is added. The latter type of call is used |
| 35 |
to add new access points from within a callback, after the program has |
| 36 |
entered the XtAppMainLoop() even loop. |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
<P> |
| 43 |
<A HREF="./help.html">Go to XPA Help Index</A> |
| 44 |
|
| 45 |
<H5>Last updated: September 10, 2003</H5> |
| 46 |
</BODY> |
| 47 |
</HTML> |