Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Files.h

Go to the documentation of this file.
00001 /******************************************************************
00002         ANet_Daemon/Common/Files.h
00003         Declarations for file management in the ANet deamon.
00004         Those declarations are common to all platforms.
00005         Platform-specific declarations are in:
00006         ANet_Daemon/<platform>/FilesSpecific.h
00007 
00008         Part of the run-time wrapper of the ANet project.
00009         
00010         Distributed under GPL: http://www.gnu.org/copyleft/gpl.html
00011 ******************************************************************/
00012 
00013 #ifndef ANET_FILES
00014 #define ANET_FILES
00015 
00016 #include "Memory.h"
00017 #include "FilesSpecific.h"
00018 
00044 ANetFile ANetInitFile();
00045 
00068 UInt32 ANetGetSetFilePath(ANetFile *f, ANetMemoryTag path, UInt8 set);
00069 
00089 UInt32 ANetGetSetFileAsync(ANetFile *f, UInt8 *async, UInt8 set);
00090 
00104 UInt8 ANetIsFileBusy(ANetFile *f);
00105 
00106 
00125 UInt32 ANetGetFileSize(ANetFile *f, UInt32 *size);
00126 
00145 UInt32 ANetOpenFile(ANetFile *f);
00146 
00163 UInt32 ANetCloseFile(ANetFile *f);
00164 
00200 UInt32 ANetReadFile(ANetFile *f, UInt32 startPos, UInt32 length, ANetMemoryTag buffer, UInt32 *read);
00201 
00224 UInt32 ANetWriteFile(ANetFile *f, ANetMemoryTag buffer);
00225 
00226 UInt32 ANetWriteFileAt(ANetFile *f, ANetMemoryTag buffer, UInt32 pos);
00227 UInt32 ANetDeleteFile(ANetFile *f);
00228 UInt32 ANetCopyFile(ANetFile *source, ANetFile *dest);
00229 
00230 #endif
00231 

Generated on Sun Dec 23 15:20:37 2001 for ANet by doxygen 1.2.12 written by Dimitri van Heesch, © 1997-2001

SourceForge
Logo