1 /* 2 * Copyright (C) 2016 The Android Open Source Project 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 #include <stdint.h> 18 19 #ifndef _LINUX_PLAT_H_ 20 #define _LINUX_PLAT_H_ 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 const struct AppHdr* platGetInternalAppList(uint32_t *numAppsP); 27 28 // External apps not supported platGetSharedAreaInfo(uint32_t * areaSzP)29static inline uint8_t* platGetSharedAreaInfo(uint32_t *areaSzP) 30 { 31 // Note: current seos.c code assumes that it will be able to read at least 32 // 4 bytes. This will be addressed, but using this workaround for now. 33 static uint8_t appHdr[4] = {0xff, 0xff, 0xff, 0xff}; 34 *areaSzP = 0; 35 return appHdr; 36 } 37 platWake(void)38static inline void platWake(void) {} 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif 45