xref: /haiku/src/add-ons/media/plugins/ape_reader/MAClib/GlobalFunctions.h (revision 053cc0d4fe060114342762e1e8dbbf86a9cad259)
1 #ifndef APE_GLOBALFUNCTIONS_H
2 #define APE_GLOBALFUNCTIONS_H
3 
4 /*************************************************************************************
5 Definitions
6 *************************************************************************************/
7 class CIO;
8 
9 /*************************************************************************************
10 Read / Write from an IO source and return failure if the number of bytes specified
11 isn't read or written
12 *************************************************************************************/
13 int ReadSafe(CIO * pIO, void * pBuffer, int nBytes);
14 int WriteSafe(CIO * pIO, void * pBuffer, int nBytes);
15 
16 /*************************************************************************************
17 Checks for the existence of a file
18 *************************************************************************************/
19 BOOL FileExists(char* pFilename);
20 
21 #endif // #ifndef APE_GLOBALFUNCTIONS_H
22