FS_SetArchiveProc

Syntax

#include <nitro/fs.h>

void FS_SetArchiveProc(struct FSArchive *p_arc, FS_ARCHIVE_PROC_FUNC proc, u32 flags);

Arguments

p_arc Address of the FSArchive structure.
proc The user procedure being registered. The function set here will be called from inside the FS function that uses archive commands.
flags A bitset that indicates the type of command to be sent to the user procedure.
This is specified as a combination of the FS_ARCHIVE_PROC_* flags.

Return Values

None.

Description

Specifies a user procedure in an archive. User procedures are called as callback functions when the archive processes commands or enters certain states. During the processing of the callback, the commands themselves can be replaced by independent processes or things can be left to the default implementation. For more information about the operation of each command, see FSCommandType.

See Also

FSArchive, FSCommandType, FS_ARCHIVE_PROC_*, FS_LoadArchive, FS_UnloadArchive

Revision History

2005/06/01 Added text indicating that procedure is called from inside a FS function.
2004/07/12 Initial version.


CONFIDENTIAL