From 045108938c11f507dcc3c50b59b0a8a8529486bd Mon Sep 17 00:00:00 2001 From: "Miguel A. Vico" Date: Wed, 19 Jul 2017 17:25:08 -0700 Subject: egl: Move _eglPointerIsDereferencable() to eglglobals.[ch] Move _eglPointerIsDereferencable() to eglglobals.[ch] and make it a non-static function so it can be used out of egldisplay.c Signed-off-by: Miguel A. Vico Reviewed-by: James Jones Acked-by: Daniel Stone Reviewed-by: Emil Velikov --- src/egl/main/eglglobals.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/egl/main/eglglobals.h') diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h index c6ef59d4820..6655ccab65c 100644 --- a/src/egl/main/eglglobals.h +++ b/src/egl/main/eglglobals.h @@ -87,4 +87,10 @@ static inline unsigned int DebugBitFromType(EGLenum type) extern const char * _eglGetClientExtensionString(void); +/** + * Perform validity checks on a generic pointer. + */ +extern EGLBoolean +_eglPointerIsDereferencable(void *p); + #endif /* EGLGLOBALS_INCLUDED */ -- cgit v1.2.3