gstreamer/gst/monkeyaudio/libmonkeyaudio/IO.h
Jeremy Simon c1a4db611b Add monkeyaudio plugin
Original commit message from CVS:
Add monkeyaudio plugin
2003-03-11 19:33:32 +00:00

56 lines
1.1 KiB
C++

#ifndef APE_IO_H
#define APE_IO_H
#include <stdio.h>
#ifndef FILE_BEGIN
# define FILE_BEGIN 0
#endif
#ifndef FILE_CURRENT
# define FILE_CURRENT 1
#endif
#ifndef FILE_END
# define FILE_END 2
#endif
#ifndef SEEK_SET
# define SEEK_SET 0
#endif
class CIO
{
public:
//construction / destruction
CIO() { }
virtual ~CIO() { };
// open / close
virtual int Open(const char * pName) = 0;
virtual int Close() = 0;
// read / write
virtual int Read(void * pBuffer, unsigned int nBytesToRead, unsigned int * pBytesRead) = 0;
virtual int Write(const void * pBuffer, unsigned int nBytesToWrite, unsigned int * pBytesWritten) = 0;
// seek
virtual int Seek(int nDistance, unsigned int nMoveMode) = 0;
// creation / destruction
virtual int Create(const char * pName) = 0;
virtual int Delete() = 0;
// other functions
virtual int SetEOF() = 0;
// attributes
virtual int GetPosition() = 0;
virtual int GetSize() = 0;
virtual int GetName(char * pBuffer) = 0;
};
#endif /* APE_IO_H */