hdt: Removing debugging message
[hdt-cyring.git] / memdump / file.h
blob8da6973d0a17b54fbc5195c6842bbf6a2869bff9
1 #ifndef FILE_H
2 #define FILE_H
4 #include "mystuff.h"
6 struct serial_if {
7 int port;
8 void *pvt;
9 void (*read) (struct serial_if *, void *, size_t);
10 void (*write) (struct serial_if *, const void *, size_t);
13 struct file_info {
14 const char *name;
15 size_t base;
16 size_t size;
17 void *pvt;
21 int serial_init(struct serial_if *sif);
22 void serial_read(struct serial_if *sif, void *data, size_t n);
23 void serial_write(struct serial_if *sif, const void *data, size_t n);
25 #endif /* FILE_H */