diff options
Diffstat (limited to 'platform/linux/include/chre/target_platform/static_nanoapp_init.h')
-rw-r--r-- | platform/linux/include/chre/target_platform/static_nanoapp_init.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/platform/linux/include/chre/target_platform/static_nanoapp_init.h b/platform/linux/include/chre/target_platform/static_nanoapp_init.h index 8e0d3400..6b540655 100644 --- a/platform/linux/include/chre/target_platform/static_nanoapp_init.h +++ b/platform/linux/include/chre/target_platform/static_nanoapp_init.h @@ -17,9 +17,9 @@ #ifndef CHRE_PLATFORM_LINUX_STATIC_NANOAPP_INIT_H_ #define CHRE_PLATFORM_LINUX_STATIC_NANOAPP_INIT_H_ -#include "chre/core/static_nanoapps.h" +#include "chre/core/nanoapp.h" #include "chre/platform/fatal_error.h" -#include "chre/platform/shared/nanoapp_support_lib_dso.h" +#include "chre/util/unique_ptr.h" /** * Initializes a static nanoapp that is based on the Linux implementation of @@ -28,10 +28,8 @@ * @param appName the name of the nanoapp. This will be prefixed by gNanoapp * when creating the global instance of the nanoapp. * @param appId the app's unique 64-bit ID - * @param appVersion the application-defined 32-bit version number - * @param appPerms the declared CHRE_PERMS_ permissions for the nanoapp. */ -#define CHRE_STATIC_NANOAPP_INIT(appName, appId_, appVersion_, appPerms) \ +#define CHRE_STATIC_NANOAPP_INIT(appName, appId_, appVersion_) \ namespace chre { \ \ UniquePtr<Nanoapp> initializeStaticNanoapp##appName() { \ @@ -50,7 +48,6 @@ appInfo.entryPoints.handleEvent = nanoappHandleEvent; \ appInfo.entryPoints.end = nanoappEnd; \ appInfo.appVersionString = "<undefined>"; \ - appInfo.appPermissions = appPerms; \ if (nanoapp.isNull()) { \ FATAL_ERROR("Failed to allocate nanoapp " #appName); \ } else { \ @@ -59,7 +56,6 @@ \ return nanoapp; \ } \ - \ - } // namespace chre + } /* namespace chre */ #endif // CHRE_PLATFORM_LINUX_STATIC_NANOAPP_INIT_H_ |