blob: 3c4555fd085b9483caf4c6f8f7b146596eb865df [file] [log] [blame]
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef CHRE_PLATFORM_PLATFORM_STATIC_NANOAPP_INIT_H_
#define CHRE_PLATFORM_PLATFORM_STATIC_NANOAPP_INIT_H_
/**
* @file
*
* Includes the appropriate platform-specific header file that supplies the
* macro to initialize a static nanoapp. The platform header file must supply the
* following macro:
*
* PLATFORM_STATIC_NANOAPP_INIT(appName)
*
* Where appName is the name of a global variable that will be created with type
* PlatformNanoapp.
*/
#include "chre/platform/platform_nanoapp.h"
#include "chre/target_platform/platform_static_nanoapp_init.h"
#ifndef PLATFORM_STATIC_NANOAPP_INIT
#error "PLATFORM_STATIC_NANOAPP_INIT must be defined"
#endif // PLATFORM_STATIC_NANOAPP_INIT
#endif // CHRE_PLATFORM_PLATFORM_STATIC_NANOAPP_INIT_H_