File: AsynchFilePlugin.h

package info (click to toggle)
squeak-vm 1%3A4.0.3.2202-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 15,200 kB
  • ctags: 15,841
  • sloc: ansic: 73,040; cs: 11,191; sh: 10,238; objc: 5,494; asm: 1,533; makefile: 476; pascal: 372; awk: 206; xml: 32
file content (18 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Header file for AsynchFile plugin */
/* module initialization/shutdown */
int asyncFileInit(void);
int asyncFileShutdown(void);

/*** Experimental Asynchronous File I/O ***/
typedef struct {
	int			sessionID;
	void		*state;
} AsyncFile;

int asyncFileClose(AsyncFile *f);
int asyncFileOpen(AsyncFile *f, int fileNamePtr, int fileNameSize, int writeFlag, int semaIndex);
int asyncFileRecordSize();
int asyncFileReadResult(AsyncFile *f, int bufferPtr, int bufferSize);
int asyncFileReadStart(AsyncFile *f, int fPosition, int count);
int asyncFileWriteResult(AsyncFile *f);
int asyncFileWriteStart(AsyncFile *f, int fPosition, int bufferPtr, int bufferSize);