Type Alias OrthancPluginWebDavRetrieveFile

Source
pub type OrthancPluginWebDavRetrieveFile = Option<unsafe extern "C" fn(collection: *mut OrthancPluginWebDavCollection, data: *const c_void, size: u64, mimeType: *const c_char, dateTime: *const c_char) -> OrthancPluginErrorCode>;
Expand description

@brief Retrieve the content of a file.

This function is used to forward the content of a file from a WebDAV collection, to the core of Orthanc.

@param collection Context of the collection. @param data Content of the file. @param size Size of the file. @param mimeType The MIME type of the file. If empty or set to NULL, Orthanc will do a best guess depending on the file extension. @param dateTime The date and time of creation of the file. It must be formatted as an ISO string of form YYYYMMDDTHHMMSS,fffffffff where T is the date-time separator. It must be expressed in UTC (it is the responsibility of the plugin to do the possible timezone conversions). Internally, this string will be parsed using boost::posix_time::from_iso_string(). @return 0 if success, other value if error. @ingroup Callbacks

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.