Back to index

lshw  02.16
blockio.h
Go to the documentation of this file.
00001 #ifndef _BLOCKIO_H_
00002 #define _BLOCKIO_H_
00003 
00004 #include <stdint.h>
00005 #include <unistd.h>
00006 #include <string>
00007 
00008 #define BLOCKSIZE 512
00009 
00010 struct source
00011 {
00012   std::string diskname;
00013   int fd;
00014   ssize_t blocksize;
00015   long long offset;
00016   long long size;
00017 };
00018 
00019 ssize_t readlogicalblocks(source & s,
00020 void * buffer,
00021 long long pos, long long count);
00022 #endif