Support drag&drop a file to transfer it to device

Signed-off-by: npes87184 <npes87184@gmail.com>
This commit is contained in:
npes87184
2018-08-12 10:40:00 +08:00
committed by Romain Vimont
parent aa97eed24b
commit 66f45f9dae
4 changed files with 111 additions and 42 deletions

View File

@@ -7,6 +7,7 @@
#include "net.h"
#define DEVICE_NAME_FIELD_LENGTH 64
#define DEVICE_SDCARD_PATH "/sdcard/"
// name must be at least DEVICE_NAME_FIELD_LENGTH bytes
SDL_bool device_read_info(socket_t device_socket, char *name, struct size *frame_size);