Logo Search packages:      
Sourcecode: cabextract version File versions  Download package

struct mschmd_header*(* mschm_decompressor::open)(struct mschm_decompressor *self, char *filename) [read]

Opens a CHM helpfile and reads its contents.

If the file opened is a valid CHM helpfile, all headers will be read and a mschmd_header structure will be returned, with a full list of files.

In the case of an error occuring, NULL is returned and the error code is available from last_error().

The filename pointer should be considered "in use" until close() is called on the CHM helpfile.

Parameters:
self a self-referential pointer to the mschm_decompressor instance being called
filename the filename of the CHM helpfile. This is passed directly to mspack_system::open().
Returns:
a pointer to a mschmd_header structure, or NULL on failure
See also:
close()


Generated by  Doxygen 1.6.0   Back to index