VINJEY ISO9660 File system API

VINJEY ISO9660 API(Application Program Interface) is simple to understand and easy to use. Given below is the API list of standard ISO9660 modules.

/* Initialize the File System */
void FS_init ();

/* Mount, Returns 1 on success and 0 on failure */
int FS_mount ( char *str, FS_Type fsType, SM_Handle smHandle);

/* Unmount, Returns 1 on success and 0 on failure */
int FS_umount ( char *str );

/* Returns -1 on failure and a positive number on success */
int FS_create ( char *fname );

/* Returns -1 on failure and a positive number on success */
int FS_open ( char *fname, int mode );

/* Returns number of bytes read succesfully */
int FS_read ( void *ptr, int size, int fd );

/* Returns number of bytes written successfully */
int FS_write ( void *ptr, int size, int fd );

/* Returns 0 on failure and 1 on success */
int FS_ioctl ( int fd, Uint cmd, void *arg );

/* Returns the position seeked to */
Int32 FS_seek ( int fd, Int32 offset, int whence);

/* Returns the current file position */
Int32 FS_tell ( int fd );

/* Returns 1 on success and 0 on failure */
int FS_close ( int fd );

/* Returns -1 on failure and a positive number on success */
int FS_opendir ( char *dirName );

/* Read one directory entry from the given directory descriptor */
int FS_readdir ( int dd, DEntry_Info *info );

/* Set the position of the directory descriptor to the beginning */
int FS_rewinddir ( int dd );

/* Close the directory opened earlier */
int FS_closedir ( int dd );