mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
4d6b170769
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
46 lines
889 B
C
46 lines
889 B
C
#pragma once
|
|
#include <furi.h>
|
|
#include "dialogs_i.h"
|
|
#include "dialogs_api_lock.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
const char* path;
|
|
const char* extension;
|
|
char* result;
|
|
uint8_t result_size;
|
|
const char* preselected_filename;
|
|
} DialogsAppMessageDataFileSelect;
|
|
|
|
typedef struct {
|
|
const DialogMessage* message;
|
|
} DialogsAppMessageDataDialog;
|
|
|
|
typedef union {
|
|
DialogsAppMessageDataFileSelect file_select;
|
|
DialogsAppMessageDataDialog dialog;
|
|
} DialogsAppData;
|
|
|
|
typedef union {
|
|
bool bool_value;
|
|
DialogMessageButton dialog_value;
|
|
} DialogsAppReturn;
|
|
|
|
typedef enum {
|
|
DialogsAppCommandFileOpen,
|
|
DialogsAppCommandDialog,
|
|
} DialogsAppCommand;
|
|
|
|
typedef struct {
|
|
FuriApiLock lock;
|
|
DialogsAppCommand command;
|
|
DialogsAppData* data;
|
|
DialogsAppReturn* return_data;
|
|
} DialogsAppMessage;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|