/*1* Copyright 2011 Joakim Sindholt <[email protected]>2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* on the rights to use, copy, modify, merge, publish, distribute, sub7* license, and/or sell copies of the Software, and to permit persons to whom8* the Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice (including the next11* paragraph) shall be included in all copies or substantial portions of the12* Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL17* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE20* USE OR OTHER DEALINGS IN THE SOFTWARE. */2122#ifndef _D3DADAPTER9_DRM_H_23#define _D3DADAPTER9_DRM_H_2425#include "d3dadapter9.h"2627/* query driver support name */28#define D3DADAPTER9DRM_NAME "drm"29/* current version */30#define D3DADAPTER9DRM_MAJOR 031#define D3DADAPTER9DRM_MINOR 23233/* version 0.0: Initial release34* 0.1: All IDirect3D objects can be assumed to have a pointer to the35* internal vtable in second position of the structure36* 0.2: IDirect3DDevice9_SetCursorPosition always calls37* ID3DPresent_SetCursorPos for hardware cursors38*/3940struct D3DAdapter9DRM41{42unsigned major_version; /* ABI break */43unsigned minor_version; /* backwards compatible feature additions */4445/* NOTE: upon passing an fd to this function, it's now owned by this46function. If this function fails, the fd will be closed here as well */47HRESULT (WINAPI *create_adapter)(int fd, ID3DAdapter9 **ppAdapter);48};4950#endif /* _D3DADAPTER9_DRM_H_ */515253