1 // Copyright (C) 2016 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #pragma once
15 
16 // Interface between android-emu non-base libraries and emugl
17 
18 #include "host-common/GoldfishDma.h"
19 #include "host-common/goldfish_sync.h"
20 #include "host-common/FeatureControl.h"
21 
22 // Feature control
23 typedef bool (*emugl_feature_is_enabled_t)(android::featurecontrol::Feature feature);
24 
25 // OpenGL timestamped logger
26 typedef void (*emugl_logger_t)(const char* fmt, ...);
27 typedef struct {
28     emugl_logger_t coarse;
29     emugl_logger_t fine;
30 } emugl_logger_struct;
31 
32