Skip to content

Commit 00587b4

Browse files
committed
feat: basic mtp
1 parent 6aa2b84 commit 00587b4

File tree

5 files changed

+576
-169
lines changed

5 files changed

+576
-169
lines changed

src/scenes/mtp/main.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ typedef struct {
1919
bool session_open;
2020
} MTPSession;
2121

22+
typedef struct FileHandle {
23+
uint32_t handle;
24+
char* path;
25+
struct FileHandle* next;
26+
} FileHandle;
27+
2228
typedef struct AppMTP {
2329
Submenu* menu;
2430
View* view;
@@ -36,6 +42,8 @@ typedef struct AppMTP {
3642
MTPSession session;
3743

3844
bool write_pending;
45+
46+
FileHandle* handles;
3947
} AppMTP;
4048

4149
AppMTP* MTP_alloc();

0 commit comments

Comments
 (0)