Lines Matching refs:name
97 #define GEN_GLOBAL_REWRITE_PTR(name, args, passthrough) \
99 name##_global_rewrite_ptr args \
101 if (name == (void *)name##_global_rewrite_ptr) \
102 name = (void *)name##_resolver(); \
103 name passthrough; \
106 #define GEN_GLOBAL_REWRITE_PTR_RET(ret, name, args, passthrough) \
108 name##_global_rewrite_ptr args \
110 if (name == (void *)name##_global_rewrite_ptr) \
111 name = (void *)name##_resolver(); \
112 return name passthrough; \
116 #define GEN_DISPATCH_TABLE_REWRITE_PTR(name, args, passthrough) \
118 name##_dispatch_table_rewrite_ptr args \
122 dispatch_table->name = (void *)name##_resolver(); \
123 dispatch_table->name passthrough; \
126 #define GEN_DISPATCH_TABLE_REWRITE_PTR_RET(ret, name, args, passthrough) \
128 name##_dispatch_table_rewrite_ptr args \
132 dispatch_table->name = (void *)name##_resolver(); \
133 return dispatch_table->name passthrough; \
136 #define GEN_DISPATCH_TABLE_THUNK(name, args, passthrough) \
138 name##_dispatch_table_thunk args \
140 get_dispatch_table()->name passthrough; \
143 #define GEN_DISPATCH_TABLE_THUNK_RET(ret, name, args, passthrough) \
145 name##_dispatch_table_thunk args \
147 return get_dispatch_table()->name passthrough; \
151 #define GEN_DISPATCH_TABLE_REWRITE_PTR(name, args, passthrough)
152 #define GEN_DISPATCH_TABLE_REWRITE_PTR_RET(ret, name, args, passthrough)
153 #define GEN_DISPATCH_TABLE_THUNK(name, args, passthrough)
154 #define GEN_DISPATCH_TABLE_THUNK_RET(ret, name, args, passthrough)
157 #define GEN_THUNKS(name, args, passthrough) \
158 GEN_GLOBAL_REWRITE_PTR(name, args, passthrough) \
159 GEN_DISPATCH_TABLE_REWRITE_PTR(name, args, passthrough) \
160 GEN_DISPATCH_TABLE_THUNK(name, args, passthrough)
162 #define GEN_THUNKS_RET(ret, name, args, passthrough) \
163 GEN_GLOBAL_REWRITE_PTR_RET(ret, name, args, passthrough) \
164 GEN_DISPATCH_TABLE_REWRITE_PTR_RET(ret, name, args, passthrough) \
165 GEN_DISPATCH_TABLE_THUNK_RET(ret, name, args, passthrough)
167 void *epoxy_egl_dlsym(const char *name);
168 void *epoxy_glx_dlsym(const char *name);
169 void *epoxy_gl_dlsym(const char *name);
170 void *epoxy_gles1_dlsym(const char *name);
171 void *epoxy_gles2_dlsym(const char *name);
172 void *epoxy_gles3_dlsym(const char *name);
173 void *epoxy_get_proc_address(const char *name);
174 void *epoxy_get_core_proc_address(const char *name, int core_version);
175 void *epoxy_get_bootstrap_proc_address(const char *name);
178 bool epoxy_conservative_has_gl_extension(const char *name);
180 bool epoxy_conservative_has_glx_extension(const char *name);
182 bool epoxy_conservative_has_egl_extension(const char *name);
183 bool epoxy_conservative_has_wgl_extension(const char *name);
184 void *epoxy_conservative_egl_dlsym(const char *name, bool exit_if_fails);
185 void *epoxy_conservative_glx_dlsym(const char *name, bool exit_if_fails);