aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/file.h')
-rw-r--r--com32/sysdump/file.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/com32/sysdump/file.h b/com32/sysdump/file.h
new file mode 100644
index 00000000..72fad3d5
--- /dev/null
+++ b/com32/sysdump/file.h
@@ -0,0 +1,25 @@
+#ifndef FILE_H
+#define FILE_H
+
+#include <stddef.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 base;
+ size_t size;
+ void *pvt;
+};
+
+
+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 /* FILE_H */