1414
1515struct gfx_ctx ;
1616
17- typedef int32_t (* gfx_error_handler_func )(int32_t e1 , int32_t e2 , void * opaque );
18-
1917#define GFX_CTX_PROTO (api , name ) mty##api##ctx_##name
2018#define GFX_CTX_FP (api , name ) (*name)
2119
@@ -29,9 +27,7 @@ typedef int32_t (*gfx_error_handler_func)(int32_t e1, int32_t e2, void *opaque);
2927 MTY_Surface *wrap(api, get_surface)(struct gfx_ctx *gfx_ctx); \
3028 void wrap(api, set_sync_interval)(struct gfx_ctx *gfx_ctx, uint32_t interval); \
3129 bool wrap(api, lock)(struct gfx_ctx *gfx_ctx); \
32- void wrap(api, unlock)(void); \
33- void wrap(api, set_error_handler)(struct gfx_ctx *gfx_ctx, gfx_error_handler_func func, void *opaque); \
34- int32_t wrap(api, get_error)(struct gfx_ctx *gfx_ctx);
30+ void wrap(api, unlock)(void);
3531
3632#define GFX_CTX_PROTOTYPES (api ) \
3733 GFX_CTX_DECLARE_API(api, GFX_CTX_PROTO)
@@ -48,6 +44,4 @@ typedef int32_t (*gfx_error_handler_func)(int32_t e1, int32_t e2, void *opaque);
4844 mty##api##ctx_set_sync_interval, \
4945 mty##api##ctx_lock, \
5046 mty##api##ctx_unlock, \
51- mty##api##ctx_set_error_handler, \
52- mty##api##ctx_get_error, \
5347 },
0 commit comments