Function physfs_sys::PHYSFS_enumerateFilesCallback[][src]

pub unsafe extern "C" fn PHYSFS_enumerateFilesCallback(
    dir: *const c_char,
    c: PHYSFS_EnumFilesCallback,
    d: *mut c_void
)
Expand description

\fn void PHYSFS_enumerateFilesCallback(const char *dir, PHYSFS_EnumFilesCallback c, void *d) \brief Get a file listing of a search path’s directory, using an application-defined callback.

\deprecated As of PhysicsFS 2.1, use PHYSFS_enumerate() instead. This function has no way to report errors (or to have the callback signal an error or request a stop), so if data will be lost, your callback has no way to direct the process, and your calling app has no way to know.

As of PhysicsFS 2.1, this function just wraps PHYSFS_enumerate() and ignores errors. Consider using PHYSFS_enumerate() or PHYSFS_enumerateFiles() instead.

\sa PHYSFS_enumerate \sa PHYSFS_enumerateFiles \sa PHYSFS_EnumFilesCallback