-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathupython.h
More file actions
35 lines (25 loc) · 718 Bytes
/
upython.h
File metadata and controls
35 lines (25 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <cli/cli.h>
#include <furi.h>
#define TAG "uPython"
#define CLI "py"
typedef enum {
ActionNone,
ActionOpen,
ActionRepl,
ActionExec,
ActionExit,
ActionTerm
} Action;
extern FuriString* file_path;
extern volatile Action action;
extern volatile FuriThreadStdoutWriteCallback stdout_callback;
void upython_reset_file_path();
Action upython_splash_screen();
bool upython_confirm_exit_action();
bool upython_select_python_file(FuriString* file_path);
void upython_cli_register(void* args);
void upython_cli_unregister(void* args);
void upython_cli(PipeSide* pipe, FuriString* args, void* ctx);
void upython_repl_execute();
void upython_file_execute(FuriString* file);