vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / plugins / ape_reader / MAClib / APELink.h
blob6cfb24a4962e400d24dfc743d34fb73aa124e31a
1 #ifndef APE_APELINK_H
2 #define APE_APELINK_H
4 #include "IO.h"
5 #include "APEInfo.h"
7 class CAPELink
9 public:
11 CAPELink(const str_utf16 * pFilename);
12 CAPELink(const char * pData, const str_utf16 * pFilename);
13 ~CAPELink();
15 BOOL GetIsLinkFile();
16 int GetStartBlock();
17 int GetFinishBlock();
18 const wchar_t * GetImageFilename();
20 protected:
22 BOOL m_bIsLinkFile;
23 int m_nStartBlock;
24 int m_nFinishBlock;
25 str_utf16 m_cImageFilename[MAX_PATH];
27 void ParseData(const char * pData, const str_utf16 * pFilename);
30 #endif // #ifndef APE_APELINK_H