1 // Copyright 2020 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 #include <stdint.h> 17 18 typedef char hw_bool_t; 19 typedef int hw_int_t; 20 typedef int64_t hw_disksize_t; 21 typedef char* hw_string_t; 22 typedef double hw_double_t; 23 24 /* these macros are used to define the fields of AndroidHwConfig 25 * declared below 26 */ 27 #define HWCFG_BOOL(n,s,d,a,t) hw_bool_t n; 28 #define HWCFG_INT(n,s,d,a,t) hw_int_t n; 29 #define HWCFG_STRING(n,s,d,a,t) hw_string_t n; 30 #define HWCFG_DOUBLE(n,s,d,a,t) hw_double_t n; 31 #define HWCFG_DISKSIZE(n,s,d,a,t) hw_disksize_t n; 32 33 typedef struct AndroidHwConfig { 34 #include "hw-config-defs.h" 35 } AndroidHwConfig; 36