xforeign.c.c
Go to the documentation of this file.
00001 /* Xlib function entries */
00002 
00003 #include "../c/eus.h"
00004 #include <dlfcn.h>
00005 #pragma init (init_object_module)
00006 
00007 /*  EusLisp X window entries */
00008 /*  This file is needed to be linked with Xfdreign in order to
00009 /*  extract Xlib functions from the archive.
00010 /*  XVERSION should be set properly when compiled.
00011 /*  1988-Dec (c) T.MATSUI
00012 */
00013 
00014 extern int XDeleteContext;
00015 extern int XFindContext;
00016 extern int XSaveContext;
00017 extern int XrmParseCommand;
00018 extern int Xpermalloc;
00019 extern int XrmQuarkToString;
00020 extern int XrmStringToQuark;
00021 extern int XrmUniqueQuark;
00022 extern int XAllocColorCells;
00023 extern int XAllocColorPlanes;
00024 extern int XAllowEvents;
00025 extern int XAutoRepeatOff;
00026 extern int XAutoRepeatOn;
00027 extern int XSetWindowBackground;
00028 extern int XSetWindowBorderWidth;
00029 extern int XBell;
00030 extern int XSetWindowBorder;
00031 extern int XDisableAccessControl;
00032 extern int XEnableAccessControl;
00033 extern int XSetAccessControl;
00034 extern int XSetCloseDownMode;
00035 extern int XChangeActivePointerGrab;
00036 extern int XSetWindowColormap;
00037 extern int XChangeGC;
00038 extern int XChangeKeyboardControl;
00039 extern int XChangePointerControl;
00040 extern int XChangeProperty;
00041 extern int XAddToSaveSet;
00042 extern int XChangeSaveSet;
00043 extern int XRemoveFromSaveSet;
00044 extern int XChangeWindowAttributes;
00045 extern int XResizeWindow;
00046 extern int XCheckIfEvent;
00047 extern int XCheckMaskEvent;
00048 extern int XCheckWindowEvent;
00049 extern int XCheckTypedEvent;
00050 extern int XCheckTypedWindowEvent;
00051 extern int XCirculateSubwindows;
00052 extern int XCirculateSubwindowsDown;
00053 extern int XCirculateSubwindowsUp;
00054 extern int XCloseDisplay;
00055 extern int XClearWindow;
00056 extern int XClearArea;
00057 extern int XMoveResizeWindow;
00058 extern int XConvertSelection;
00059 extern int XCopyArea;
00060 extern int XCopyColormapAndFree;
00061 extern int XCopyGC;
00062 extern int XCopyPlane;
00063 extern int XCreateBitmapFromData;
00064 extern int XCreateColormap;
00065 extern int XCreatePixmapCursor;
00066 extern int XCreateGC;
00067 extern int XGContextFromGC;
00068 extern int XCreateGlyphCursor;
00069 extern int XCreatePixmapFromBitmapData;
00070 extern int XCreatePixmap;
00071 extern int XCreateSimpleWindow;
00072 extern int XCreateFontCursor;
00073 extern int XDefineCursor;
00074 extern int XDeleteProperty;
00075 extern int XDestroySubwindows;
00076 extern int XDestroyWindow;
00077 extern int XDisplayName;
00078 extern int XDrawArc;
00079 extern int XDrawArcs;
00080 extern int XDrawLine;
00081 extern int XDrawLines;
00082 extern int XDrawPoint;
00083 extern int XDrawPoints;
00084 extern int XDrawRectangle;
00085 extern int XDrawRectangles;
00086 extern int XDrawSegments;
00087 extern int XGetErrorDatabaseText;
00088 extern int XGetErrorText;
00089 extern int XSetErrorHandler;
00090 extern int XSetIOErrorHandler;
00091 extern int XFetchName;
00092 extern int XGetIconName;
00093 extern int XFillArc;
00094 extern int XFillArcs;
00095 extern int XFillPolygon;
00096 extern int XFillRectangle;
00097 extern int XFillRectangles;
00098 extern int XFlush;
00099 extern int XFreeFont;
00100 extern int XLoadQueryFont;
00101 extern int XQueryFont;
00102 extern int XFreeFontNames;
00103 extern int XListFonts;
00104 extern int XFreeFontInfo;
00105 extern int XListFontsWithInfo;
00106 extern int XFreeColormap;
00107 extern int XFreeColors;
00108 extern int XFreeCursor;
00109 extern int XFreeGC;
00110 extern int XFreePixmap;
00111 extern int XActivateScreenSaver;
00112 extern int XForceScreenSaver;
00113 extern int XResetScreenSaver;
00114 extern int XSetArcMode;
00115 extern int XSetFillRule;
00116 extern int XSetFillStyle;
00117 extern int XSetGraphicsExposures;
00118 extern int XSetSubwindowMode;
00119 extern int XGeometry;
00120 extern int XGetAtomName;
00121 extern int XAllocNamedColor;
00122 extern int XGetDefault;
00123 extern int XFreeFontPath;
00124 extern int XGetFontPath;
00125 extern int XGetFontProperty;
00126 extern int XGetGeometry;
00127 extern int XGetGCValues;
00128 extern int XAllocColor;
00129 extern int XGetClassHint;
00130 extern int XGetIconSizes;
00131 extern int XGetNormalHints;
00132 extern int XGetSizeHints;
00133 extern int XGetTransientForHint;
00134 extern int XGetWMHints;
00135 extern int XGetZoomHints;
00136 extern int XGetInputFocus;
00137 extern int XGetImage;
00138 extern int XGetSubImage;
00139 extern int XGetKeyboardControl;
00140 extern int XGetMotionEvents;
00141 extern int XGetPointerControl;
00142 extern int XGetKeyboardMapping;
00143 extern int XGetPointerMapping;
00144 extern int XGetWindowProperty;
00145 extern int XGetSelectionOwner;
00146 extern int XGetScreenSaver;
00147 extern int XGetStandardColormap;
00148 extern int XGetWindowAttributes;
00149 extern int XGrabButton;
00150 extern int XGrabKey;
00151 extern int XGrabKeyboard;
00152 extern int XGrabPointer;
00153 extern int XGrabServer;
00154 extern int XAddHost;
00155 extern int XAddHosts;
00156 extern int XRemoveHost;
00157 extern int XRemoveHosts;
00158 extern int XIfEvent;
00159 extern int XCreateImage;
00160 extern int XDrawImageString;
00161 extern int XDrawImageString16;
00162 extern int XESetCloseDisplay;
00163 extern int XESetCopyGC;
00164 extern int XESetCreateFont;
00165 extern int XESetCreateGC;
00166 extern int XESetError;
00167 extern int XESetErrorString;
00168 extern int XESetEventToWire;
00169 extern int XESetFlushGC;
00170 extern int XESetFreeFont;
00171 extern int XESetFreeGC;
00172 extern int XESetWireToEvent;
00173 extern int XInitExtension;
00174 extern int XInstallColormap;
00175 extern int XInternAtom;
00176 
00177 #ifdef X_V11R2
00178 extern int MatchEvent;
00179 #endif 
00180 
00181 extern int XKeycodeToKeysym;
00182 extern int XKeysymToKeycode;
00183 extern int XLookupKeysym;
00184 extern int XLookupString;
00185 extern int XRebindKeysym;
00186 extern int XRefreshKeyboardMapping;
00187 /* extern int XUseKeymap; */
00188 extern int XKillClient;
00189 extern int XListHosts;
00190 extern int XListInstalledColormaps;
00191 extern int XListProperties;
00192 extern int XFreeExtensionList;
00193 extern int XListExtensions;
00194 extern int XLoadFont;
00195 extern int XLookupColor;
00196 extern int XLowerWindow;
00197 extern int XAddPixel;
00198 extern int XAllPlanes;
00199 extern int XBitmapBitOrder;
00200 extern int XBitmapPad;
00201 extern int XBitmapUnit;
00202 extern int XBlackPixel;
00203 extern int XBlackPixelOfScreen;
00204 extern int XCellsOfScreen;
00205 extern int XConnectionNumber;
00206 extern int XDefaultColormap;
00207 extern int XDefaultColormapOfScreen;
00208 extern int XDefaultDepth;
00209 extern int XDefaultDepthOfScreen;
00210 extern int XDefaultGC;
00211 extern int XDefaultGCOfScreen;
00212 extern int XDefaultRootWindow;
00213 extern int XDefaultScreen;
00214 extern int XDefaultScreenOfDisplay;
00215 extern int XDefaultVisual;
00216 extern int XDefaultVisualOfScreen;
00217 extern int XDestroyImage;
00218 extern int XDisplayCells;
00219 extern int XDisplayHeight;
00220 extern int XDisplayHeightMM;
00221 extern int XDisplayOfScreen;
00222 extern int XDisplayPlanes;
00223 extern int XDisplayString;
00224 extern int XDisplayWidth;
00225 extern int XDisplayWidthMM;
00226 extern int XDoesBackingStore;
00227 extern int XDoesSaveUnders;
00228 extern int XEventMaskOfScreen;
00229 extern int XGetPixel;
00230 extern int XHeightMMOfScreen;
00231 extern int XHeightOfScreen;
00232 extern int XImageByteOrder;
00233 extern int XLastKnownRequestProcessed;
00234 extern int XMaxCmapsOfScreen;
00235 extern int XMinCmapsOfScreen;
00236 extern int XNextRequest;
00237 extern int XNoOp;
00238 extern int XPlanesOfScreen;
00239 extern int XProtocolRevision;
00240 extern int XProtocolVersion;
00241 extern int XPutPixel;
00242 extern int XQLength;
00243 extern int XRootWindow;
00244 extern int XRootWindowOfScreen;
00245 extern int XScreenCount;
00246 extern int XScreenOfDisplay;
00247 extern int XServerVendor;
00248 extern int XSubImage;
00249 extern int XVendorRelease;
00250 extern int XWhitePixel;
00251 extern int XWhitePixelOfScreen;
00252 extern int XWidthMMOfScreen;
00253 extern int XWidthOfScreen;
00254 extern int XMapRaised;
00255 extern int XMapSubwindows;
00256 extern int XMapWindow;
00257 extern int XMaskEvent;
00258 extern int XDeleteModifiermapEntry;
00259 extern int XFreeModifiermap;
00260 extern int XGetModifierMapping;
00261 extern int XInsertModifiermapEntry;
00262 extern int XNewModifiermap;
00263 extern int XSetModifierMapping;
00264 extern int XMoveWindow;
00265 extern int XNextEvent;
00266 extern int XOpenDisplay;
00267 extern int XParseColor;
00268 /* extern int ReadInteger; */
00269 extern int XParseGeometry;
00270 extern int XPeekEvent;
00271 extern int XPeekIfEvent;
00272 extern int XEventsQueued;
00273 extern int XPending;
00274 extern int XSetWindowBackgroundPixmap;
00275 extern int XSetWindowBorderPixmap;
00276 extern int XPolygonRegion;
00277 extern int XDrawText;
00278 extern int XDrawText16;
00279 extern int XPutBackEvent;
00280 extern int XPutImage;
00281 extern int XQueryBestSize;
00282 extern int XQueryColor;
00283 extern int XQueryColors;
00284 extern int XQueryBestCursor;
00285 extern int XQueryExtension;
00286 extern int XQueryKeymap;
00287 extern int XQueryPointer;
00288 extern int XQueryBestStipple;
00289 extern int XQueryTextExtents16;
00290 extern int XQueryTextExtents;
00291 extern int XQueryBestTile;
00292 extern int XQueryTree;
00293 extern int XRaiseWindow;
00294 extern int XReadBitmapFile;
00295 extern int XRecolorCursor;
00296 extern int XConfigureWindow;
00297 extern int XClipBox;
00298 extern int XCreateRegion;
00299 extern int XDestroyRegion;
00300 extern int XEmptyRegion;
00301 extern int XEqualRegion;
00302 extern int XIntersectRegion;
00303 extern int XOffsetRegion;
00304 extern int XPointInRegion;
00305 extern int XRectInRegion;
00306 extern int XSetRegion;
00307 extern int XShrinkRegion;
00308 extern int XSubtractRegion;
00309 extern int XUnionRectWithRegion;
00310 extern int XUnionRegion;
00311 extern int XXorRegion;
00312 /* extern int combineRegs; */
00313 extern int XReparentWindow;
00314 extern int XRestackWindows;
00315 extern int XRotateWindowProperties;
00316 extern int XSelectInput;
00317 extern int XSendEvent;
00318 extern int XSetBackground;
00319 extern int XSetClipRectangles;
00320 extern int XSetClipMask;
00321 extern int XSetClipOrigin;
00322 extern int XSetDashes;
00323 extern int XSetFontPath;
00324 extern int XSetFont;
00325 extern int XSetForeground;
00326 extern int XSetFunction;
00327 extern int XSetClassHint;
00328 extern int XSetCommand;
00329 extern int XSetIconSizes;
00330 extern int XSetNormalHints;
00331 extern int XSetSizeHints;
00332 extern int XSetStandardProperties;
00333 extern int XSetTransientForHint;
00334 extern int XSetWMHints;
00335 extern int XSetZoomHints;
00336 extern int XSetInputFocus;
00337 extern int XSetLineAttributes;
00338 extern int XSetPlaneMask;
00339 extern int XChangeKeyboardMapping;
00340 extern int XSetPointerMapping;
00341 extern int XSetSelectionOwner;
00342 extern int XSetScreenSaver;
00343 extern int XSetState;
00344 extern int XSetStipple;
00345 extern int XSetStandardColormap;
00346 extern int XSetTile;
00347 extern int XSetTSOrigin;
00348 extern int XFetchBuffer;
00349 extern int XFetchBytes;
00350 extern int XRotateBuffers;
00351 extern int XStoreBuffer;
00352 extern int XStoreBytes;
00353 extern int XStoreColor;
00354 extern int XStoreColors;
00355 extern int XStoreNamedColor;
00356 extern int XSetIconName;
00357 extern int XStoreName;
00358 extern int XKeysymToString;
00359 extern int XStringToKeysym;
00360 extern int XSync;
00361 extern int XSetAfterFunction;
00362 extern int XSynchronize;
00363 extern int XDrawString;
00364 extern int XDrawString16;
00365 extern int XTextExtents;
00366 extern int XTextWidth;
00367 extern int XTextExtents16;
00368 extern int XTextWidth16;
00369 extern int XTranslateCoordinates;
00370 extern int XUndefineCursor;
00371 extern int XUngrabButton;
00372 extern int XUngrabKeyboard;
00373 extern int XUngrabKey;
00374 extern int XUngrabPointer;
00375 extern int XUngrabServer;
00376 extern int XUninstallColormap;
00377 extern int XUnloadFont;
00378 extern int XUnmapSubwindows;
00379 extern int XUnmapWindow;
00380 extern int XGetVisualInfo;
00381 extern int XMatchVisualInfo;
00382 extern int XWarpPointer;
00383 extern int XWindowEvent;
00384 extern int XCreateWindow;
00385 extern int XWriteBitmapFile;
00386 extern int XFree;
00387 extern int XrmGetFileDatabase;
00388 extern int XrmGetResource;
00389 extern int XrmGetStringDatabase;
00390 extern int XrmInitialize;
00391 extern int XrmMergeDatabases;
00392 extern int XrmPutFileDatabase;
00393 extern int XrmPutLineResource;
00394 extern int XrmPutResource;
00395 extern int XrmPutStringResource;
00396 extern int XrmQGetResource;
00397 extern int XrmQGetSearchList;
00398 extern int XrmQGetSearchResource;
00399 extern int XrmQPutResource;
00400 extern int XrmQPutStringResource;
00401 extern int XrmStringToBindingQuarkList;
00402 extern int XrmStringToQuarkList;
00403 #if X_V11R6_1
00404 extern int XInitThreads;
00405 extern int XLockDisplay;
00406 extern int XUnlockDisplay;
00407 #endif
00408 
00409 
00410 extern pointer sysmod;
00411 
00412 pointer defxforeign(ctx,xentry)
00413 register context *ctx;
00414 char *xentry;
00415 { pointer fc, xsym;
00416   eusinteger_t entry; int i, len;
00417   char lname[100];
00418   len=strlen(xentry);
00419   for (i=0; i<len-1; i++) lname[i]=toupper(xentry[i+1]);
00420   lname[i]=0;
00421 #if Cygwin /* dlopen libX11.dll */
00422    eusinteger_t dlhandle;
00423    dlhandle=(eusinteger_t)dlopen("/usr/bin/cygX11-6.dll", RTLD_LAZY);
00424    if( dlhandle==0 )
00425      dlhandle=(eusinteger_t)dlopen("libX11.dll", RTLD_LAZY);
00426    entry=(eusinteger_t)dlsym(dlhandle, xentry);
00427 #elif Darwin
00428    eusinteger_t dlhandle;
00429    dlhandle=(eusinteger_t)dlopen("/opt/X11/lib/libX11.dylib", RTLD_LAZY);
00430    if( dlhandle==0 )
00431      dlhandle=(eusinteger_t)dlopen("libX11.dylib", RTLD_LAZY);
00432    entry=(eusinteger_t)dlsym(dlhandle, xentry);
00433 #else
00434   entry=(eusinteger_t)dlsym((void *)((eusinteger_t)(sysmod->c.ldmod.handle) & ~3), xentry);
00435 #endif
00436   if (entry){
00437     xsym=intern(ctx,lname, len-1, xpkg);
00438     fc=makeobject(C_FCODE);
00439     xsym->c.sym.spefunc=fc;
00440     fc->c.fcode.codevec=makeint(0);
00441     fc->c.fcode.quotevec=makeint(0);
00442     fc->c.fcode.subrtype=SUBR_FUNCTION;
00443     fc->c.fcode.paramtypes=NIL;
00444     fc->c.fcode.resulttype=K_INTEGER;
00445     fc->c.fcode.entry=makeint(entry>>2);
00446     fc->c.fcode.entry2=makeint(entry);   /* kanehiro's patch 2000.12.13 */
00447 /*  
00448     printf("x: %s at %x, %x\n", xsym->c.sym.pname->c.str.chars, 
00449                                 entry, fc->c.fcode.entry); 
00450 */
00451     export(xsym,xpkg); 
00452   }
00453   return(xsym);}
00454   
00455 pointer xforeign(ctx,n,argv)
00456 register context *ctx;
00457 int n;
00458 pointer argv[];
00459 {
00460   defxforeign(ctx,"XDeleteContext");
00461   defxforeign(ctx,"XFindContext");
00462   defxforeign(ctx,"XSaveContext");
00463   defxforeign(ctx,"XrmParseCommand");
00464   defxforeign(ctx,"Xpermalloc");
00465   defxforeign(ctx,"XrmQuarkToString");
00466   defxforeign(ctx,"XrmStringToQuark");
00467   defxforeign(ctx,"XrmUniqueQuark");
00468   defxforeign(ctx,"XAllocColorCells");
00469   defxforeign(ctx,"XAllocColorPlanes");
00470   defxforeign(ctx,"XAllowEvents");
00471   defxforeign(ctx,"XAutoRepeatOff");
00472   defxforeign(ctx,"XAutoRepeatOn");
00473   defxforeign(ctx,"XSetWindowBackground");
00474   defxforeign(ctx,"XSetWindowBorderWidth");
00475   defxforeign(ctx,"XBell");
00476   defxforeign(ctx,"XSetWindowBorder");
00477   defxforeign(ctx,"XDisableAccessControl");
00478   defxforeign(ctx,"XEnableAccessControl");
00479   defxforeign(ctx,"XSetAccessControl");
00480   defxforeign(ctx,"XSetCloseDownMode");
00481   defxforeign(ctx,"XChangeActivePointerGrab");
00482   defxforeign(ctx,"XSetWindowColormap");
00483   defxforeign(ctx,"XChangeGC");
00484   defxforeign(ctx,"XGetGCValues");
00485   defxforeign(ctx,"XChangeKeyboardControl");
00486   defxforeign(ctx,"XChangePointerControl");
00487   defxforeign(ctx,"XChangeProperty");
00488   defxforeign(ctx,"XAddToSaveSet");
00489   defxforeign(ctx,"XChangeSaveSet");
00490   defxforeign(ctx,"XRemoveFromSaveSet");
00491   defxforeign(ctx,"XChangeWindowAttributes");
00492   defxforeign(ctx,"XResizeWindow");
00493   defxforeign(ctx,"XCheckIfEvent");
00494   defxforeign(ctx,"XCheckMaskEvent");
00495   defxforeign(ctx,"XCheckWindowEvent");
00496   defxforeign(ctx,"XCheckTypedEvent");
00497   defxforeign(ctx,"XCheckTypedWindowEvent");
00498   defxforeign(ctx,"XCirculateSubwindows");
00499   defxforeign(ctx,"XCirculateSubwindowsDown");
00500   defxforeign(ctx,"XCirculateSubwindowsUp");
00501   defxforeign(ctx,"XCloseDisplay");
00502   defxforeign(ctx,"XClearWindow");
00503   defxforeign(ctx,"XClearArea");
00504   defxforeign(ctx,"XMoveResizeWindow");
00505   defxforeign(ctx,"XConvertSelection");
00506   defxforeign(ctx,"XCopyArea");
00507   defxforeign(ctx,"XCopyColormapAndFree");
00508   defxforeign(ctx,"XCopyGC");
00509   defxforeign(ctx,"XCopyPlane");
00510   defxforeign(ctx,"XCreateBitmapFromData");
00511   defxforeign(ctx,"XCreateColormap");
00512   defxforeign(ctx,"XCreatePixmapCursor");
00513   defxforeign(ctx,"XCreateGC");
00514   defxforeign(ctx,"XGContextFromGC");
00515   defxforeign(ctx,"XCreateGlyphCursor");
00516   defxforeign(ctx,"XCreatePixmapFromBitmapData");
00517   defxforeign(ctx,"XCreatePixmap");
00518   defxforeign(ctx,"XCreateSimpleWindow");
00519   defxforeign(ctx,"XCreateFontCursor");
00520   defxforeign(ctx,"XDefineCursor");
00521   defxforeign(ctx,"XDeleteProperty");
00522   defxforeign(ctx,"XDestroySubwindows");
00523   defxforeign(ctx,"XDestroyWindow");
00524   defxforeign(ctx,"XDisplayName");
00525   defxforeign(ctx,"XDrawArc");
00526   defxforeign(ctx,"XDrawArcs");
00527   defxforeign(ctx,"XDrawLine");
00528   defxforeign(ctx,"XDrawLines");
00529   defxforeign(ctx,"XDrawPoint");
00530   defxforeign(ctx,"XDrawPoints");
00531   defxforeign(ctx,"XDrawRectangle");
00532   defxforeign(ctx,"XDrawRectangles");
00533   defxforeign(ctx,"XDrawSegments");
00534   defxforeign(ctx,"XGetErrorDatabaseText");
00535   defxforeign(ctx,"XGetErrorText");
00536   defxforeign(ctx,"XSetErrorHandler");
00537   defxforeign(ctx,"XSetIOErrorHandler");
00538   defxforeign(ctx,"XFetchName");
00539   defxforeign(ctx,"XGetIconName");
00540   defxforeign(ctx,"XFillArc");
00541   defxforeign(ctx,"XFillArcs");
00542   defxforeign(ctx,"XFillPolygon");
00543   defxforeign(ctx,"XFillRectangle");
00544   defxforeign(ctx,"XFillRectangles");
00545   defxforeign(ctx,"XFlush");
00546   defxforeign(ctx,"XFreeFont");
00547   defxforeign(ctx,"XLoadQueryFont");
00548   defxforeign(ctx,"XQueryFont");
00549   defxforeign(ctx,"XFreeFontNames");
00550   defxforeign(ctx,"XListFonts");
00551   defxforeign(ctx,"XFreeFontInfo");
00552   defxforeign(ctx,"XListFontsWithInfo");
00553   defxforeign(ctx,"XFreeColormap");
00554   defxforeign(ctx,"XFreeColors");
00555   defxforeign(ctx,"XFreeCursor");
00556   defxforeign(ctx,"XFreeGC");
00557   defxforeign(ctx,"XFreePixmap");
00558   defxforeign(ctx,"XActivateScreenSaver");
00559   defxforeign(ctx,"XForceScreenSaver");
00560   defxforeign(ctx,"XResetScreenSaver");
00561   defxforeign(ctx,"XSetArcMode");
00562   defxforeign(ctx,"XSetFillRule");
00563   defxforeign(ctx,"XSetFillStyle");
00564   defxforeign(ctx,"XSetGraphicsExposures");
00565   defxforeign(ctx,"XSetSubwindowMode");
00566   defxforeign(ctx,"XGeometry");
00567   defxforeign(ctx,"XGetAtomName");
00568   defxforeign(ctx,"XAllocNamedColor");
00569   defxforeign(ctx,"XGetDefault");
00570   defxforeign(ctx,"XFreeFontPath");
00571   defxforeign(ctx,"XGetFontPath");
00572   defxforeign(ctx,"XGetFontProperty");
00573   defxforeign(ctx,"XGetGeometry");
00574   defxforeign(ctx,"XAllocColor");
00575   defxforeign(ctx,"XGetClassHint");
00576   defxforeign(ctx,"XGetIconSizes");
00577   defxforeign(ctx,"XGetNormalHints");
00578   defxforeign(ctx,"XGetSizeHints");
00579   defxforeign(ctx,"XGetTransientForHint");
00580   defxforeign(ctx,"XGetWMHints");
00581   defxforeign(ctx,"XGetZoomHints");
00582   defxforeign(ctx,"XGetInputFocus");
00583   defxforeign(ctx,"XGetImage");
00584   defxforeign(ctx,"XGetSubImage");
00585   defxforeign(ctx,"XGetKeyboardControl");
00586   defxforeign(ctx,"XGetMotionEvents");
00587   defxforeign(ctx,"XGetPointerControl");
00588   defxforeign(ctx,"XGetKeyboardMapping");
00589   defxforeign(ctx,"XGetPointerMapping");
00590   defxforeign(ctx,"XGetWindowProperty");
00591   defxforeign(ctx,"XGetSelectionOwner");
00592   defxforeign(ctx,"XGetScreenSaver");
00593   defxforeign(ctx,"XGetStandardColormap");
00594   defxforeign(ctx,"XGetWindowAttributes");
00595   defxforeign(ctx,"XGrabButton");
00596   defxforeign(ctx,"XGrabKey");
00597   defxforeign(ctx,"XGrabKeyboard");
00598   defxforeign(ctx,"XGrabPointer");
00599   defxforeign(ctx,"XGrabServer");
00600   defxforeign(ctx,"XAddHost");
00601   defxforeign(ctx,"XAddHosts");
00602   defxforeign(ctx,"XRemoveHost");
00603   defxforeign(ctx,"XRemoveHosts");
00604   defxforeign(ctx,"XIfEvent");
00605   defxforeign(ctx,"XCreateImage");
00606   defxforeign(ctx,"XDrawImageString");
00607   defxforeign(ctx,"XDrawImageString16");
00608   defxforeign(ctx,"XESetCloseDisplay");
00609   defxforeign(ctx,"XESetCopyGC");
00610   defxforeign(ctx,"XESetCreateFont");
00611   defxforeign(ctx,"XESetCreateGC");
00612   defxforeign(ctx,"XESetError");
00613   defxforeign(ctx,"XESetErrorString");
00614   defxforeign(ctx,"XESetEventToWire");
00615   defxforeign(ctx,"XESetFlushGC");
00616   defxforeign(ctx,"XESetFreeFont");
00617   defxforeign(ctx,"XESetFreeGC");
00618   defxforeign(ctx,"XESetWireToEvent");
00619   defxforeign(ctx,"XInitExtension");
00620   defxforeign(ctx,"XInstallColormap");
00621   defxforeign(ctx,"XInternAtom");
00622 
00623   defxforeign(ctx,"XKeycodeToKeysym");
00624   defxforeign(ctx,"XKeysymToKeycode");
00625   defxforeign(ctx,"XLookupKeysym");
00626   defxforeign(ctx,"XLookupString");
00627   defxforeign(ctx,"XRebindKeysym");
00628   defxforeign(ctx,"XRefreshKeyboardMapping");
00629 /* usekeymap cannot be found in X11R4 */
00630 /*   (defxforeign USEKEYMAP Xlib "XKillClient"); */
00631   defxforeign(ctx,"XListHosts");
00632   defxforeign(ctx,"XListInstalledColormaps");
00633   defxforeign(ctx,"XListProperties");
00634   defxforeign(ctx,"XFreeExtensionList");
00635   defxforeign(ctx,"XListExtensions");
00636   defxforeign(ctx,"XLoadFont");
00637   defxforeign(ctx,"XLookupColor");
00638   defxforeign(ctx,"XLowerWindow");
00639   defxforeign(ctx,"XAddPixel");
00640   defxforeign(ctx,"XAllPlanes");
00641   defxforeign(ctx,"XBitmapBitOrder");
00642   defxforeign(ctx,"XBitmapPad");
00643   defxforeign(ctx,"XBitmapUnit");
00644   defxforeign(ctx,"XBlackPixel");
00645   defxforeign(ctx,"XBlackPixelOfScreen");
00646   defxforeign(ctx,"XCellsOfScreen");
00647   defxforeign(ctx,"XConnectionNumber");
00648   defxforeign(ctx,"XDefaultColormap");
00649   defxforeign(ctx,"XDefaultColormapOfScreen");
00650   defxforeign(ctx,"XDefaultDepth");
00651   defxforeign(ctx,"XDefaultDepthOfScreen");
00652   defxforeign(ctx,"XDefaultGC");
00653   defxforeign(ctx,"XDefaultGCOfScreen");
00654   defxforeign(ctx,"XDefaultRootWindow");
00655   defxforeign(ctx,"XDefaultScreen");
00656   defxforeign(ctx,"XDefaultScreenOfDisplay");
00657   defxforeign(ctx,"XDefaultVisual");
00658   defxforeign(ctx,"XDefaultVisualOfScreen");
00659   defxforeign(ctx,"XDestroyImage");
00660   defxforeign(ctx,"XDisplayCells");
00661   defxforeign(ctx,"XDisplayHeight");
00662   defxforeign(ctx,"XDisplayHeightMM");
00663   defxforeign(ctx,"XDisplayOfScreen");
00664   defxforeign(ctx,"XDisplayPlanes");
00665   defxforeign(ctx,"XDisplayString");
00666   defxforeign(ctx,"XDisplayWidth");
00667   defxforeign(ctx,"XDisplayWidthMM");
00668   defxforeign(ctx,"XDoesBackingStore");
00669   defxforeign(ctx,"XDoesSaveUnders");
00670   defxforeign(ctx,"XEventMaskOfScreen");
00671   defxforeign(ctx,"XGetPixel");
00672   defxforeign(ctx,"XHeightMMOfScreen");
00673   defxforeign(ctx,"XHeightOfScreen");
00674   defxforeign(ctx,"XImageByteOrder");
00675   defxforeign(ctx,"XLastKnownRequestProcessed");
00676   defxforeign(ctx,"XMaxCmapsOfScreen");
00677   defxforeign(ctx,"XMinCmapsOfScreen");
00678   defxforeign(ctx,"XNextRequest");
00679   defxforeign(ctx,"XNoOp");
00680   defxforeign(ctx,"XPlanesOfScreen");
00681   defxforeign(ctx,"XProtocolRevision");
00682   defxforeign(ctx,"XProtocolVersion");
00683   defxforeign(ctx,"XPutPixel");
00684   defxforeign(ctx,"XQLength");
00685   defxforeign(ctx,"XRootWindow");
00686   defxforeign(ctx,"XRootWindowOfScreen");
00687   defxforeign(ctx,"XScreenCount");
00688   defxforeign(ctx,"XScreenOfDisplay");
00689   defxforeign(ctx,"XServerVendor");
00690   defxforeign(ctx,"XSubImage");
00691   defxforeign(ctx,"XVendorRelease");
00692   defxforeign(ctx,"XWhitePixel");
00693   defxforeign(ctx,"XWhitePixelOfScreen");
00694   defxforeign(ctx,"XWidthMMOfScreen");
00695   defxforeign(ctx,"XWidthOfScreen");
00696   defxforeign(ctx,"XMapRaised");
00697   defxforeign(ctx,"XMapSubwindows");
00698   defxforeign(ctx,"XMapWindow");
00699   defxforeign(ctx,"XMaskEvent");
00700   defxforeign(ctx,"XDeleteModifiermapEntry");
00701   defxforeign(ctx,"XFreeModifiermap");
00702   defxforeign(ctx,"XGetModifierMapping");
00703   defxforeign(ctx,"XInsertModifiermapEntry");
00704   defxforeign(ctx,"XNewModifiermap");
00705   defxforeign(ctx,"XSetModifierMapping");
00706   defxforeign(ctx,"XMoveWindow");
00707   defxforeign(ctx,"XNextEvent");
00708   defxforeign(ctx,"XOpenDisplay");
00709   defxforeign(ctx,"XParseColor");
00710 /*   defxforeign(ctx,"ReadInteger"); */
00711   defxforeign(ctx,"XParseGeometry");
00712   defxforeign(ctx,"XPeekEvent");
00713   defxforeign(ctx,"XPeekIfEvent");
00714   defxforeign(ctx,"XEventsQueued");
00715   defxforeign(ctx,"XPending");
00716   defxforeign(ctx,"XSetWindowBackgroundPixmap");
00717   defxforeign(ctx,"XSetWindowBorderPixmap");
00718   defxforeign(ctx,"XPolygonRegion");
00719   defxforeign(ctx,"XDrawText");
00720   defxforeign(ctx,"XDrawText16");
00721   defxforeign(ctx,"XPutBackEvent");
00722   defxforeign(ctx,"XPutImage");
00723   defxforeign(ctx,"XQueryBestSize");
00724   defxforeign(ctx,"XQueryColor");
00725   defxforeign(ctx,"XQueryColors");
00726   defxforeign(ctx,"XQueryBestCursor");
00727   defxforeign(ctx,"XQueryExtension");
00728   defxforeign(ctx,"XQueryKeymap");
00729   defxforeign(ctx,"XQueryPointer");
00730   defxforeign(ctx,"XQueryBestStipple");
00731   defxforeign(ctx,"XQueryTextExtents16");
00732   defxforeign(ctx,"XQueryTextExtents");
00733   defxforeign(ctx,"XQueryBestTile");
00734   defxforeign(ctx,"XQueryTree");
00735   defxforeign(ctx,"XRaiseWindow");
00736   defxforeign(ctx,"XReadBitmapFile");
00737   defxforeign(ctx,"XRecolorCursor");
00738   defxforeign(ctx,"XConfigureWindow");
00739   defxforeign(ctx,"XClipBox");
00740   defxforeign(ctx,"XCreateRegion");
00741   defxforeign(ctx,"XDestroyRegion");
00742   defxforeign(ctx,"XEmptyRegion");
00743   defxforeign(ctx,"XEqualRegion");
00744   defxforeign(ctx,"XIntersectRegion");
00745   defxforeign(ctx,"XOffsetRegion");
00746   defxforeign(ctx,"XPointInRegion");
00747   defxforeign(ctx,"XRectInRegion");
00748   defxforeign(ctx,"XSetRegion");
00749   defxforeign(ctx,"XShrinkRegion");
00750   defxforeign(ctx,"XSubtractRegion");
00751   defxforeign(ctx,"XUnionRectWithRegion");
00752   defxforeign(ctx,"XUnionRegion");
00753   defxforeign(ctx,"XXorRegion");
00754 /*   defxforeign(ctx,"combineRegs"); */
00755   defxforeign(ctx,"XReparentWindow");
00756   defxforeign(ctx,"XRestackWindows");
00757   defxforeign(ctx,"XRotateWindowProperties");
00758   defxforeign(ctx,"XSelectInput");
00759   defxforeign(ctx,"XSendEvent");
00760   defxforeign(ctx,"XSetBackground");
00761   defxforeign(ctx,"XSetClipRectangles");
00762   defxforeign(ctx,"XSetClipMask");
00763   defxforeign(ctx,"XSetClipOrigin");
00764   defxforeign(ctx,"XSetDashes");
00765   defxforeign(ctx,"XSetFontPath");
00766   defxforeign(ctx,"XSetFont");
00767   defxforeign(ctx,"XSetForeground");
00768   defxforeign(ctx,"XSetFunction");
00769   defxforeign(ctx,"XSetClassHint");
00770   defxforeign(ctx,"XSetCommand");
00771   defxforeign(ctx,"XSetIconSizes");
00772   defxforeign(ctx,"XSetNormalHints");
00773   defxforeign(ctx,"XSetSizeHints");
00774   defxforeign(ctx,"XSetStandardProperties");
00775   defxforeign(ctx,"XSetTransientForHint");
00776   defxforeign(ctx,"XSetWMHints");
00777   defxforeign(ctx,"XSetZoomHints");
00778   defxforeign(ctx,"XSetInputFocus");
00779   defxforeign(ctx,"XSetLineAttributes");
00780   defxforeign(ctx,"XSetPlaneMask");
00781   defxforeign(ctx,"XChangeKeyboardMapping");
00782   defxforeign(ctx,"XSetPointerMapping");
00783   defxforeign(ctx,"XSetSelectionOwner");
00784   defxforeign(ctx,"XSetScreenSaver");
00785   defxforeign(ctx,"XSetState");
00786   defxforeign(ctx,"XSetStipple");
00787   defxforeign(ctx,"XSetStandardColormap");
00788   defxforeign(ctx,"XSetTile");
00789   defxforeign(ctx,"XSetTSOrigin");
00790   defxforeign(ctx,"XFetchBuffer");
00791   defxforeign(ctx,"XFetchBytes");
00792   defxforeign(ctx,"XRotateBuffers");
00793   defxforeign(ctx,"XStoreBuffer");
00794   defxforeign(ctx,"XStoreBytes");
00795   defxforeign(ctx,"XStoreColor");
00796   defxforeign(ctx,"XStoreColors");
00797   defxforeign(ctx,"XStoreNamedColor");
00798   defxforeign(ctx,"XSetIconName");
00799   defxforeign(ctx,"XStoreName");
00800   defxforeign(ctx,"XKeysymToString");
00801   defxforeign(ctx,"XStringToKeysym");
00802   defxforeign(ctx,"XSync");
00803   defxforeign(ctx,"XSetAfterFunction");
00804   defxforeign(ctx,"XSynchronize");
00805   defxforeign(ctx,"XDrawString");
00806   defxforeign(ctx,"XDrawString16");
00807   defxforeign(ctx,"XTextExtents");
00808   defxforeign(ctx,"XTextWidth");
00809   defxforeign(ctx,"XTextExtents16");
00810   defxforeign(ctx,"XTextWidth16");
00811   defxforeign(ctx,"XTranslateCoordinates");
00812   defxforeign(ctx,"XUndefineCursor");
00813   defxforeign(ctx,"XUngrabButton");
00814   defxforeign(ctx,"XUngrabKeyboard");
00815   defxforeign(ctx,"XUngrabKey");
00816   defxforeign(ctx,"XUngrabPointer");
00817   defxforeign(ctx,"XUngrabServer");
00818   defxforeign(ctx,"XUninstallColormap");
00819   defxforeign(ctx,"XUnloadFont");
00820   defxforeign(ctx,"XUnmapSubwindows");
00821   defxforeign(ctx,"XUnmapWindow");
00822   defxforeign(ctx,"XGetVisualInfo");
00823   defxforeign(ctx,"XMatchVisualInfo");
00824   defxforeign(ctx,"XWarpPointer");
00825   defxforeign(ctx,"XWindowEvent");
00826   defxforeign(ctx,"XCreateWindow");
00827   defxforeign(ctx,"XWriteBitmapFile");
00828   defxforeign(ctx,"XFree");
00829   defxforeign(ctx,"XrmGetFileDatabase");
00830   defxforeign(ctx,"XrmGetResource");
00831   defxforeign(ctx,"XrmGetStringDatabase");
00832   defxforeign(ctx,"XrmInitialize");
00833   defxforeign(ctx,"XrmMergeDatabases");
00834   defxforeign(ctx,"XrmPutFileDatabase");
00835   defxforeign(ctx,"XrmPutLineResource");
00836   defxforeign(ctx,"XrmPutResource");
00837   defxforeign(ctx,"XrmPutStringResource");
00838   defxforeign(ctx,"XrmQGetResource");
00839   defxforeign(ctx,"XrmQGetSearchList");
00840   defxforeign(ctx,"XrmQGetSearchResource");
00841   defxforeign(ctx,"XrmQPutResource");
00842   defxforeign(ctx,"XrmQPutStringResource");
00843   defxforeign(ctx,"XrmStringToBindingQuarkList");
00844   defxforeign(ctx,"XrmStringToQuarkList");
00845 #if X_V11R6_1
00846   defxforeign(ctx,"XInitThreads");
00847   defxforeign(ctx,"XLockDisplay");
00848   defxforeign(ctx,"XUnlockDisplay");
00849 #endif
00850   return(argv[0]);
00851 }
00852 
00853 static void init_object_module()
00854   { add_module_initializer("xforeign", xforeign);}


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 6 2019 18:05:54