Bug #3163: Create new DRIINFO_*_VERSION macros to indicate the version

number of the DRIInfoRec, disambiguating it from the XF86DRI protocol
    version number. Modify DRIQueryVersion to return the libdri version
    number, which all DDXes were requesting implicitly. Fix the DDXes to
    check for the DRIINFO version they were compiled against.
This commit is contained in:
Adam Jackson 2005-05-18 17:47:35 +00:00
commit b87a32fb0e
2 changed files with 22 additions and 6 deletions

View file

@ -1958,14 +1958,15 @@ DRIGetWrappedFuncs(ScreenPtr pScreen)
return &(DRI_SCREEN_PRIV(pScreen)->wrap);
}
/* note that this returns the library version, not the protocol version */
void
DRIQueryVersion(int *majorVersion,
int *minorVersion,
int *patchVersion)
{
*majorVersion = XF86DRI_MAJOR_VERSION;
*minorVersion = XF86DRI_MINOR_VERSION;
*patchVersion = XF86DRI_PATCH_VERSION;
*majorVersion = DRIINFO_MAJOR_VERSION;
*minorVersion = DRIINFO_MINOR_VERSION;
*patchVersion = DRIINFO_PATCH_VERSION;
}
static void