-/* $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
/* Must be before '#undef getenv' for inclusion in XFree86.
*/
-static char * CAPI
+char * CAPI
_mesa_getenv(__GLcontext *gc, const char *var)
{
(void) gc;
}
-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;
-/* $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
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);