summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/ggi/default/linear.c
diff options
context:
space:
mode:
authorJon Taylor <[email protected]>2000-06-11 20:11:55 +0000
committerJon Taylor <[email protected]>2000-06-11 20:11:55 +0000
commitffd561e4b5dcc0f13d30519f08af0f2b5aba1419 (patch)
treed692d043e7d3702081eec3456b1040d1f26127ee /src/mesa/drivers/ggi/default/linear.c
parent7b2c0f9148eb7eb30326173899ed366fcef8d437 (diff)
Lots of small updates to GGIMesa, tracking LibGGI internals changes
Diffstat (limited to 'src/mesa/drivers/ggi/default/linear.c')
-rw-r--r--src/mesa/drivers/ggi/default/linear.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/mesa/drivers/ggi/default/linear.c b/src/mesa/drivers/ggi/default/linear.c
index 6acdf4d8012..e15a0db0508 100644
--- a/src/mesa/drivers/ggi/default/linear.c
+++ b/src/mesa/drivers/ggi/default/linear.c
@@ -320,14 +320,28 @@ int GGIsetup_driver(GGIMesaContext ggictx,struct ggi_mesa_info *info)
return 0;
}
-int GGIdlinit(ggi_visual_t vis,const char *version,void *argptr)
+static int GGIopen(ggi_visual_t vis,struct ggi_dlhandle *dlh,
+ const char *args,void *argptr, uint32 *dlret)
{
LIBGGI_MESAEXT(vis)->setup_driver=GGIsetup_driver;
+ *dlret = GGI_DL_OPDRAW;
return 0;
}
-int GGIdlcleanup(ggi_visual_t vis)
+int DLOPENFUNC(int func, void **funcptr)
{
- return 0;
+ switch (func) {
+ case GGIFUNC_open:
+ *funcptr = GGIopen;
+ return 0;
+ case GGIFUNC_exit:
+ case GGIFUNC_close:
+ *funcptr = NULL;
+ return 0;
+ default:
+ *funcptr = NULL;
+ }
+ return GGI_ENOTFOUND;
}
+