aboutsummaryrefslogtreecommitdiffstats
path: root/memdump/ymsend.h
diff options
context:
space:
mode:
Diffstat (limited to 'memdump/ymsend.h')
-rw-r--r--memdump/ymsend.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/memdump/ymsend.h b/memdump/ymsend.h
index daed627d..b0d74384 100644
--- a/memdump/ymsend.h
+++ b/memdump/ymsend.h
@@ -2,26 +2,10 @@
#define YMSEND_H
#include "mystuff.h"
-
-struct serial_if {
- int port;
- void *pvt;
- void (*read) (struct serial_if *, void *, size_t);
- void (*write) (struct serial_if *, const void *, size_t);
-};
-
-struct file_info {
- const char *name;
- size_t size;
- void *pvt;
-};
+#include "file.h"
void send_ymodem(struct serial_if *, struct file_info *,
void (*)(void *, size_t, struct file_info *, size_t));
void end_ymodem(struct serial_if *);
-int serial_init(struct serial_if *sif);
-void serial_read(struct serial_if *sif, void *data, size_t n);
-void serial_write(struct serial_if *sif, const void *data, size_t n);
-
#endif /* YMSEND_H */