1 /* 2 * Copyright (C) 2021 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 #ifndef CHRE_HOST_NAPP_HEADER_H_ 18 #define CHRE_HOST_NAPP_HEADER_H_ 19 20 namespace android { 21 namespace chre { 22 23 // This struct comes from build/build_template.mk and must not be modified. 24 // Refer to that file for more details. 25 struct NanoAppBinaryHeader { 26 uint32_t headerVersion; 27 uint32_t magic; 28 uint64_t appId; 29 uint32_t appVersion; 30 uint32_t flags; 31 uint64_t hwHubType; 32 uint8_t targetChreApiMajorVersion; 33 uint8_t targetChreApiMinorVersion; 34 uint8_t reserved[6]; 35 } __attribute__((packed)); 36 37 } // namespace chre 38 } // namespace android 39 40 #endif // CHRE_HOST_NAPP_HEADER_H_ 41