xf86dri.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**************************************************************************
  2. Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
  3. Copyright 2000 VA Linux Systems, Inc.
  4. All Rights Reserved.
  5. Permission is hereby granted, free of charge, to any person obtaining a
  6. copy of this software and associated documentation files (the
  7. "Software"), to deal in the Software without restriction, including
  8. without limitation the rights to use, copy, modify, merge, publish,
  9. distribute, sub license, and/or sell copies of the Software, and to
  10. permit persons to whom the Software is furnished to do so, subject to
  11. the following conditions:
  12. The above copyright notice and this permission notice (including the
  13. next paragraph) shall be included in all copies or substantial portions
  14. of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  16. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
  18. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
  19. ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. **************************************************************************/
  23. /**
  24. * \file xf86dri.h
  25. * Protocol numbers and function prototypes for DRI X protocol.
  26. *
  27. * \author Kevin E. Martin <martin@valinux.com>
  28. * \author Jens Owen <jens@tungstengraphics.com>
  29. * \author Rickard E. (Rik) Faith <faith@valinux.com>
  30. */
  31. #ifndef _XF86DRI_H_
  32. #define _XF86DRI_H_
  33. #include <xf86drm.h>
  34. #define X_XF86DRIQueryVersion 0
  35. #define X_XF86DRIQueryDirectRenderingCapable 1
  36. #define X_XF86DRIOpenConnection 2
  37. #define X_XF86DRICloseConnection 3
  38. #define X_XF86DRIGetClientDriverName 4
  39. #define X_XF86DRICreateContext 5
  40. #define X_XF86DRIDestroyContext 6
  41. #define X_XF86DRICreateDrawable 7
  42. #define X_XF86DRIDestroyDrawable 8
  43. #define X_XF86DRIGetDrawableInfo 9
  44. #define X_XF86DRIGetDeviceInfo 10
  45. #define X_XF86DRIAuthConnection 11
  46. #define X_XF86DRIOpenFullScreen 12 /* Deprecated */
  47. #define X_XF86DRICloseFullScreen 13 /* Deprecated */
  48. #define XF86DRINumberEvents 0
  49. #define XF86DRIClientNotLocal 0
  50. #define XF86DRIOperationNotSupported 1
  51. #define XF86DRINumberErrors (XF86DRIOperationNotSupported + 1)
  52. #endif /* _XF86DRI_H_ */