Type Alias OrthancPluginWebDavAddFile

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

@brief Declare a file while returning the content of a folder.

This function declares a file while returning the content of a WebDAV folder.

@param collection Context of the collection. @param name Base name of the file. @param dateTime The date and time of creation of the file. Check out the documentation of OrthancPluginWebDavRetrieveFile() for more information. @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. @return 0 if success, other value if error. @ingroup Callbacks

Aliased Type§

pub enum OrthancPluginWebDavAddFile {
    None,
    Some(unsafe extern "C" fn(*mut _OrthancPluginWebDavCollection_t, *const i8, 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 i8, u64, *const i8, *const i8) -> i32)

Some value of type T.