diff options
Diffstat (limited to 'saa/saa_priv.h')
-rw-r--r-- | saa/saa_priv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/saa/saa_priv.h b/saa/saa_priv.h index 08e7902..06ff8f7 100644 --- a/saa/saa_priv.h +++ b/saa/saa_priv.h @@ -74,6 +74,7 @@ struct saa_screen_priv { struct saa_driver *driver; CreateGCProcPtr saved_CreateGC; CloseScreenProcPtr saved_CloseScreen; + CloseScreenProcPtr saved_early_CloseScreen; GetImageProcPtr saved_GetImage; GetSpansProcPtr saved_GetSpans; CreatePixmapProcPtr saved_CreatePixmap; @@ -127,6 +128,15 @@ do { \ (real)->mem = (priv)->saved_##mem; \ } +#define saa_wrap_early(priv, real, mem, func) { \ + (priv)->saved_early_##mem = (real)->mem; \ + (real)->mem = func; \ +} + +#define saa_unwrap_early(priv, real, mem) { \ + (real)->mem = (priv)->saved_early_##mem; \ +} + #define saa_swap(priv, real, mem) {\ CONST_ABI_18_0 void *tmp = (priv)->saved_##mem; \ (priv)->saved_##mem = (real)->mem; \ |