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