1a4f78defSmrg/* 2a4f78defSmrg * Copyright © 2007,2008 Red Hat, Inc. 3a4f78defSmrg * Copyright © 2010 NVIDIA Corporation 4a4f78defSmrg * 5a4f78defSmrg * Permission is hereby granted, free of charge, to any person obtaining a 6a4f78defSmrg * copy of this software and associated documentation files (the "Soft- 7a4f78defSmrg * ware"), to deal in the Software without restriction, including without 8a4f78defSmrg * limitation the rights to use, copy, modify, merge, publish, distribute, 9a4f78defSmrg * and/or sell copies of the Software, and to permit persons to whom the 10a4f78defSmrg * Software is furnished to do so, provided that the above copyright 11a4f78defSmrg * notice(s) and this permission notice appear in all copies of the Soft- 12a4f78defSmrg * ware and that both the above copyright notice(s) and this permission 13a4f78defSmrg * notice appear in supporting documentation. 14a4f78defSmrg * 15a4f78defSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16a4f78defSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- 17a4f78defSmrg * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY 18a4f78defSmrg * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN 19a4f78defSmrg * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE- 20a4f78defSmrg * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 21a4f78defSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 22a4f78defSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR- 23a4f78defSmrg * MANCE OF THIS SOFTWARE. 24a4f78defSmrg * 25a4f78defSmrg * Except as contained in this notice, the name of a copyright holder shall 26a4f78defSmrg * not be used in advertising or otherwise to promote the sale, use or 27a4f78defSmrg * other dealings in this Software without prior written authorization of 28a4f78defSmrg * the copyright holder. 29a4f78defSmrg * 30a4f78defSmrg * Authors: 31a4f78defSmrg * Kristian Høgsberg (krh@redhat.com) 32a4f78defSmrg * Modified for VDPAU by Aaron Plattner (aplattner@nvidia.com) 33a4f78defSmrg */ 34a4f78defSmrg 35a4f78defSmrg#ifndef _VDP_DRI2_H_ 36a4f78defSmrg#define _VDP_DRI2_H_ 37a4f78defSmrg 38a4f78defSmrg#include <X11/extensions/dri2tokens.h> 39a4f78defSmrg 40a4f78defSmrg#if (defined(__GNUC__) && __GNUC__ >= 4) 41a4f78defSmrg #define PRIVATE __attribute__ ((visibility("hidden"))) 42a4f78defSmrg#else 43a4f78defSmrg #define PRIVATE 44a4f78defSmrg#endif 45a4f78defSmrg 46a4f78defSmrg 47a4f78defSmrgPRIVATE extern Bool 48a4f78defSmrg_vdp_DRI2QueryExtension(Display * display, int *eventBase, int *errorBase); 49a4f78defSmrg 50a4f78defSmrgPRIVATE extern Bool 51a4f78defSmrg_vdp_DRI2QueryVersion(Display * display, int *major, int *minor); 52a4f78defSmrg 53a4f78defSmrgPRIVATE extern Bool 54a4f78defSmrg_vdp_DRI2Connect(Display * display, XID window, char **driverName, 55a4f78defSmrg char **deviceName); 56a4f78defSmrg 57a4f78defSmrgPRIVATE extern void 58a4f78defSmrg_vdp_DRI2RemoveExtension(Display * display); 59a4f78defSmrg 60a4f78defSmrg#endif 61