Dominic Höglinger 73e1535d14 RadioSet: Forgot main(), add first draft of UI
I just found out that the STL is not available.
Finally, C+.
2025-09-27 18:59:01 +02:00

30 lines
534 B
C++

#include <tt_app.h>
#include "RadioSet.h"
static void onShow(AppHandle appHandle, void* data, lv_obj_t* parent) {
static_cast<RadioSet*>(data)->onShow(appHandle, parent);
}
static void* createApp() {
return new RadioSet();
}
static void destroyApp(void* app) {
delete static_cast<RadioSet*>(app);
}
ExternalAppManifest manifest = {
.createData = createApp,
.destroyData = destroyApp,
.onShow = onShow,
};
extern "C" {
int main(int argc, char* argv[]) {
tt_app_register(&manifest);
return 0;
}
}