xlbx.pp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. (*
  2. * Copyright 1992 Network Computing Devices
  3. *
  4. * Permission to use, copy, modify, distribute, and sell this software and its
  5. * documentation for any purpose is hereby granted without fee, provided that
  6. * the above copyright notice appear in all copies and that both that
  7. * copyright notice and this permission notice appear in supporting
  8. * documentation, and that the name of NCD. not be used in advertising or
  9. * publicity pertaining to distribution of the software without specific,
  10. * written prior permission. NCD. makes no representations about the
  11. * suitability of this software for any purpose. It is provided "as is"
  12. * without express or implied warranty.
  13. *
  14. * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  15. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
  16. * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  17. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  18. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  19. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  20. *
  21. *)
  22. {$IFNDEF FPC_DOTTEDUNITS}
  23. unit xlbx;
  24. {$ENDIF FPC_DOTTEDUNITS}
  25. interface
  26. {$IFDEF FPC_DOTTEDUNITS}
  27. uses
  28. System.CTypes, Api.X11.Xlib;
  29. {$ELSE FPC_DOTTEDUNITS}
  30. uses
  31. ctypes, xlib;
  32. {$ENDIF FPC_DOTTEDUNITS}
  33. const
  34. libXext = 'Xext';
  35. {$I lbx.inc}
  36. function XLbxQueryExtension(
  37. dpy: PDisplay;
  38. requestp,
  39. event_basep,
  40. error_basep: Pcint
  41. ): TBoolResult; cdecl; external libXext;
  42. function XLbxQueryVersion(
  43. dpy: PDisplay;
  44. majorVersion,
  45. minorVersion: Pcint
  46. ): TBoolResult; cdecl; external libXext;
  47. function XLbxGetEventBase(dpy: PDisplay): cint; cdecl; external libXext;
  48. implementation
  49. end.