Function safe_app::ffi::nfs::file_close [] [src]

#[no_mangle]
pub unsafe extern "C" fn file_close(
    app: *const App,
    file_h: FileContextHandle,
    user_data: *mut c_void,
    o_cb: extern "C" fn(_: *mut c_void, _: FfiResult, _: *const File)
)

Close is invoked only after all the data is completely written. The file is saved only when close is invoked.

If the file was opened in any of the read modes, returns the modified file structure as a result. If the file was opened in the read mode, returns the original file structure that was passed as an argument to file_open.

Frees the file context handle.

Callback parameters: user data, error code, file