Type Alias OrthancPluginWebDavRetrieveFileCallback

Source
pub type OrthancPluginWebDavRetrieveFileCallback = Option<unsafe extern "C" fn(collection: *mut OrthancPluginWebDavCollection, retrieveFile: OrthancPluginWebDavRetrieveFile, pathSize: u32, pathItems: *const *const c_char, payload: *mut c_void) -> OrthancPluginErrorCode>;
Expand description

@brief Callback for retrieving the content of a file.

Signature of a callback function that retrieves the content of a file in the WebDAV collection. The callback must call the provided retrieveFile() function to emit the actual content of the file.

@param collection Context to be provided to retrieveFile() function. @param retrieveFile Function to return the content of the file. @param pathSize Number of levels in the path. @param pathItems Items making the path. @param payload The user payload. @return 0 if success, other value if error. @ingroup Callbacks

Aliased Type§

pub enum OrthancPluginWebDavRetrieveFileCallback {
    None,
    Some(unsafe extern "C" fn(*mut _OrthancPluginWebDavCollection_t, Option<unsafe extern "C" fn(*mut _OrthancPluginWebDavCollection_t, *const c_void, u64, *const i8, *const i8) -> i32>, u32, *const *const i8, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _OrthancPluginWebDavCollection_t, Option<unsafe extern "C" fn(*mut _OrthancPluginWebDavCollection_t, *const c_void, u64, *const i8, *const i8) -> i32>, u32, *const *const i8, *mut c_void) -> i32)

Some value of type T.