From f7e9c1290c755ff59729af3ef63c1f5dd5e5fb45 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 14 Oct 2014 19:15:22 -0600 Subject: Layers initial prototype. Includes an auto generated layer (GenericLayer) that wraps all api calls. Includes a basic handwritten layer (basicLayer) that wraps a few apis. Adds xglGetProcAddr as a new api, which is used to chain layers together. All layers and loader implement a dispatch table. --- loader/loader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'loader/loader.h') diff --git a/loader/loader.h b/loader/loader.h index b76f6344..d8191421 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -31,7 +31,7 @@ #include #include #include - +#include #if defined(__GNUC__) && __GNUC__ >= 4 # define LOADER_EXPORT __attribute__((visibility("default"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) @@ -40,4 +40,6 @@ # define LOADER_EXPORT #endif +extern XGL_UINT ActivateLayers(XGL_PHYSICAL_GPU *gpu); +#define MAX_LAYER_LIBRARIES 16 #endif /* LOADER_H */ -- cgit v1.2.3