Add LoaderShouldIgnoreABI to allow drivers that roll their own ABI checks (i.e. nvidia) to perform the check before ScreenInit.
This commit is contained in:
parent
c42427f63f
commit
ebd70c82fd
|
@ -209,6 +209,7 @@ void LoaderReqSymLists(const char **, ...);
|
|||
void LoaderReqSymbols(const char *, ...);
|
||||
int LoaderCheckUnresolved(int);
|
||||
void LoaderGetOS(const char **name, int *major, int *minor, int *teeny);
|
||||
Bool LoaderShouldIgnoreABI(void);
|
||||
int LoaderGetABIVersion(const char *abiclass);
|
||||
|
||||
typedef pointer (*ModuleSetupProc)(pointer, pointer, int *, int *);
|
||||
|
|
|
@ -363,6 +363,12 @@ LoaderSetOptions(unsigned long opts)
|
|||
LoaderOptions |= opts;
|
||||
}
|
||||
|
||||
_X_EXPORT Bool
|
||||
LoaderShouldIgnoreABI(void)
|
||||
{
|
||||
return (LoaderOptions & LDR_OPT_ABI_MISMATCH_NONFATAL) != 0;
|
||||
}
|
||||
|
||||
_X_EXPORT int
|
||||
LoaderGetABIVersion(const char *abiclass)
|
||||
{
|
||||
|
|
|
@ -713,6 +713,7 @@ _X_HIDDEN void *xfree86LookupTab[] = {
|
|||
SYMFUNC(LoaderListDirs)
|
||||
SYMFUNC(LoaderFreeDirList)
|
||||
SYMFUNC(LoaderGetOS)
|
||||
SYMFUNC(LoaderShouldIgnoreABI)
|
||||
SYMFUNC(LoaderGetABIVersion)
|
||||
|
||||
#ifdef XF86DRI
|
||||
|
|
Loading…
Reference in New Issue
Block a user