diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/imports.c | 10 | ||||
-rw-r--r-- | src/mesa/main/imports.h | 13 |
2 files changed, 17 insertions, 6 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index c3783c624b..290df64cf1 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -1,4 +1,4 @@ -/* $Id: imports.c,v 1.19 2002/10/14 17:08:21 brianp Exp $ */ +/* $Id: imports.c,v 1.20 2002/10/15 15:36:26 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -80,7 +80,7 @@ _mesa_Free(__GLcontext *gc, void *addr) /* Must be before '#undef getenv' for inclusion in XFree86. */ -static char * CAPI +char * CAPI _mesa_getenv(__GLcontext *gc, const char *var) { (void) gc; @@ -139,21 +139,21 @@ _mesa_sprintf(__GLcontext *gc, char *str, const char *fmt, ...) } -static void * CAPI +void * CAPI _mesa_fopen(__GLcontext *gc, const char *path, const char *mode) { return fopen(path, mode); } -static int CAPI +int CAPI _mesa_fclose(__GLcontext *gc, void *stream) { return fclose((FILE *) stream); } -static int CAPI +int CAPI _mesa_fprintf(__GLcontext *gc, void *stream, const char *fmt, ...) { int r; diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 2a19ff81d1..9363c4163e 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -1,4 +1,4 @@ -/* $Id: imports.h,v 1.4 2002/06/29 19:48:16 brianp Exp $ */ +/* $Id: imports.h,v 1.5 2002/10/15 15:36:26 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -53,6 +53,17 @@ _mesa_debug( const __GLcontext *ctx, const char *fmtString, ... ); extern void _mesa_printf( const __GLcontext *ctx, const char *fmtString, ... ); +extern int CAPI +_mesa_fprintf(__GLcontext *gc, void *stream, const char *fmt, ...); + +extern void * CAPI +_mesa_fopen(__GLcontext *gc, const char *path, const char *mode); + +extern int CAPI +_mesa_fclose(__GLcontext *gc, void *stream); + +extern char * CAPI +_mesa_getenv(__GLcontext *gc, const char *var); extern void _mesa_init_default_imports(__GLimports *imports, void *driverCtx); |