#pragma once #include "AppCompatC.h" #include "AppManifest.h" #ifdef ESP_PLATFORM namespace tt::app { void setElfAppManifest( const char* name, const char* _Nullable icon, CreateData _Nullable createData, DestroyData _Nullable destroyData, OnStart _Nullable onStart, OnStop _Nullable onStop, OnShow _Nullable onShow, OnHide _Nullable onHide, OnResult _Nullable onResult ); /** * @return the app ID based on the executable's file path. */ std::string getElfAppId(const std::string& filePath); /** * @return true when registration was done, false when app was already registered */ bool registerElfApp(const std::string& filePath); std::shared_ptr createElfApp(const std::shared_ptr& manifest); } #endif // ESP_PLATFORM