diff options
Diffstat (limited to 'mesalib/src/mapi/glapi/glapi.h')
-rwxr-xr-x | mesalib/src/mapi/glapi/glapi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesalib/src/mapi/glapi/glapi.h b/mesalib/src/mapi/glapi/glapi.h index 89fb1dceb..8084e5757 100755 --- a/mesalib/src/mapi/glapi/glapi.h +++ b/mesalib/src/mapi/glapi/glapi.h @@ -76,6 +76,8 @@ struct _glapi_table; typedef void (*_glapi_proc)(void); /* generic function pointer */ +typedef void (*_glapi_nop_handler_proc)(const char *name); + typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...); @@ -179,6 +181,14 @@ extern struct _glapi_table * _glapi_create_table_from_handle(void *handle, const char *symbol_prefix); +void +_glapi_set_nop_handler(_glapi_nop_handler_proc func); + +/** Return pointer to new dispatch table filled with no-op functions */ +struct _glapi_table * +_glapi_new_nop_table(unsigned num_entries); + + #ifdef __cplusplus } |