syslinux/memdump/file.h
<<
>>
Prefs
   1#ifndef FILE_H
   2#define FILE_H
   3
   4#include "mystuff.h"
   5
   6struct 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);
  11};
  12
  13struct file_info {
  14    const char *name;
  15    size_t base;
  16    size_t size;
  17    void *pvt;
  18};
  19
  20
  21int serial_init(struct serial_if *sif);
  22void serial_read(struct serial_if *sif, void *data, size_t n);
  23void serial_write(struct serial_if *sif, const void *data, size_t n);
  24
  25#endif /* FILE_H */
  26
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.