X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=c8db7fab26e867ae9d3adc8f44b7a1b447db4d09;hb=43db91d700145ae03ae7b83308a869aef5bd6eb0;hp=c3c933fccd7185f4bbaab454b087f894ef12b12e;hpb=026710ef54197b252aec1082765bdc61fe2bb731;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index c3c933f..c8db7fa 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -129,6 +129,7 @@ #include #include #include +#include /* These are included based on autoconf directives. */ #ifdef HAVE_SYS_TYPES_H @@ -243,6 +244,10 @@ typedef void (* FGCBMenuStatus )( int, int, int ); /* The callback used when creating/using menus */ typedef void (* FGCBMenu )( int ); +/* The FreeGLUT error/warning handler type definition */ +typedef void (* FGError ) ( const char *fmt, va_list ap); +typedef void (* FGWarning ) ( const char *fmt, va_list ap); + /* A list structure */ typedef struct tagSFG_List SFG_List; @@ -333,6 +338,8 @@ struct tagSFG_State int MinorVersion; /* Minor OpenGL context version */ int ContextFlags; /* OpenGL context flags */ int ContextProfile; /* OpenGL context profile */ + FGError ErrorFunc; /* User defined error handler */ + FGWarning WarningFunc; /* User defined warning handler */ }; /* The structure used by display initialization in freeglut_init.c */