aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/mgmt-misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cli-test/mgmt-misc.h')
-rw-r--r--projects/cli-test/mgmt-misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/projects/cli-test/mgmt-misc.h b/projects/cli-test/mgmt-misc.h
index caf7024..b7eb4f4 100644
--- a/projects/cli-test/mgmt-misc.h
+++ b/projects/cli-test/mgmt-misc.h
@@ -38,6 +38,12 @@
#include "stm-init.h"
#include <libcli.h>
+
+#define FILETRANSFER_UPLOAD_CHUNK_SIZE 256
+
+typedef int (*cli_data_callback)(uint8_t *, size_t);
+
extern void configure_cli_misc(struct cli_def *cli);
+extern int cli_receive_data(struct cli_def *cli, uint8_t *buf, size_t len, cli_data_callback data_callback);
#endif /* __STM32_CLI_MGMT_MISC_H */