mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
23 lines
433 B
C
23 lines
433 B
C
#include "app_i.h"
|
|
#include "furi_core.h"
|
|
#include "log.h"
|
|
#include "furi_string.h"
|
|
|
|
#define TAG "app"
|
|
|
|
App* furi_app_alloc(const AppManifest* _Nonnull manifest) {
|
|
App app = {
|
|
.manifest = manifest,
|
|
.context = {
|
|
.data = NULL
|
|
}
|
|
};
|
|
App* app_ptr = malloc(sizeof(App));
|
|
return memcpy(app_ptr, &app, sizeof(App));
|
|
}
|
|
|
|
void furi_app_free(App* app) {
|
|
furi_assert(app);
|
|
free(app);
|
|
}
|