/*1* Copyright © 2008 Red Hat, Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Soft-5* ware"), to deal in the Software without restriction, including without6* limitation the rights to use, copy, modify, merge, publish, distribute,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, provided that the above copyright9* notice(s) and this permission notice appear in all copies of the Soft-10* ware and that both the above copyright notice(s) and this permission11* notice appear in supporting documentation.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS14* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-15* ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY16* RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN17* THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-18* QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,19* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER20* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-21* MANCE OF THIS SOFTWARE.22*23* Except as contained in this notice, the name of a copyright holder shall24* not be used in advertising or otherwise to promote the sale, use or25* other dealings in this Software without prior written authorization of26* the copyright holder.27*28* Authors:29* Kristian Høgsberg ([email protected])30*/3132#ifndef DRI2_PRIV_H33#define DRI2_PRIV_H3435#ifdef __cplusplus36extern "C" {37#endif3839struct dri2_screen {40struct glx_screen base;4142__DRIscreen *driScreen;43__GLXDRIscreen vtable;44const __DRIdri2Extension *dri2;45const __DRIcoreExtension *core;4647const __DRI2flushExtension *f;48const __DRI2configQueryExtension *config;49const __DRItexBufferExtension *texBuffer;50const __DRI2throttleExtension *throttle;51const __DRI2rendererQueryExtension *rendererQuery;52const __DRI2interopExtension *interop;53const __DRIconfig **driver_configs;5455void *driver;56char *driverName;57int fd;5859int show_fps_interval;60};6162struct dri2_context63{64struct glx_context base;65__DRIcontext *driContext;66};6768_X_HIDDEN int69dri2_query_renderer_integer(struct glx_screen *base, int attribute,70unsigned int *value);7172_X_HIDDEN int73dri2_query_renderer_string(struct glx_screen *base, int attribute,74const char **value);7576_X_HIDDEN int77dri2_interop_query_device_info(struct glx_context *ctx,78struct mesa_glinterop_device_info *out);7980_X_HIDDEN int81dri2_interop_export_object(struct glx_context *ctx,82struct mesa_glinterop_export_in *in,83struct mesa_glinterop_export_out *out);8485#ifdef __cplusplus86}87#endif8889#endif909192