- Update ILI9341 driver to v2.0.1 - Lots of code cleanup for apps - Refactor app "type" into "category" and added flags to the manifest (for show/hide statusbar and for hidden apps) - Rename some ElfApp-related functionality and improved the way the static data was managed - Rename "filebrowser" to "files" - Added cstring functions to tt_init.cpp - Minor fix in Boot app - Updated external apps for SDK changes
31 lines
925 B
C++
31 lines
925 B
C++
#pragma once
|
|
|
|
#include "AppManifest.h"
|
|
|
|
#ifdef ESP_PLATFORM
|
|
|
|
namespace tt::app {
|
|
|
|
typedef void* (*CreateData)();
|
|
typedef void (*DestroyData)(void* data);
|
|
typedef void (*OnCreate)(void* appContext, void* _Nullable data);
|
|
typedef void (*OnDestroy)(void* appContext, void* _Nullable data);
|
|
typedef void (*OnShow)(void* appContext, void* _Nullable data, lv_obj_t* parent);
|
|
typedef void (*OnHide)(void* appContext, void* _Nullable data);
|
|
typedef void (*OnResult)(void* appContext, void* _Nullable data, LaunchId launchId, Result result, Bundle* resultData);
|
|
|
|
void setElfAppParameters(
|
|
CreateData _Nullable createData,
|
|
DestroyData _Nullable destroyData,
|
|
OnCreate _Nullable onCreate,
|
|
OnDestroy _Nullable onDestroy,
|
|
OnShow _Nullable onShow,
|
|
OnHide _Nullable onHide,
|
|
OnResult _Nullable onResult
|
|
);
|
|
|
|
std::shared_ptr<App> createElfApp(const std::shared_ptr<AppManifest>& manifest);
|
|
|
|
}
|
|
#endif // ESP_PLATFORM
|