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