blob: 5ff61c6f43635f3832da9ac9130945c0037d60ac [file] [log] [blame]
David Ghandehari9e5b5872016-07-28 09:50:04 -07001/*
2 * Copyright 2016 Google Inc. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef GLIMP_EGL_GET_PROC_ADDRESS_IMPL_H_
18#define GLIMP_EGL_GET_PROC_ADDRESS_IMPL_H_
19
20namespace glimp {
21namespace egl {
22
23typedef void (*MustCastToProperFunctionPointerType)(void);
24
25// Calls to eglGetProcAddress() that are unhandled by platform-independent
26// glimp code are forwarded to this platform-specific call, so that different
27// platforms can implement custom extensions. This function should return
28// a function pointer to the requested function upon success, and return NULL
29// if the requested function is not available.
30MustCastToProperFunctionPointerType GetProcAddressImpl(const char* procname);
31
32} // namespace egl
33} // namespace glimp
34
35#endif // GLIMP_EGL_GET_PROC_ADDRESS_IMPL_H_