Type Alias OrthancPluginFindCallback

Source
pub type OrthancPluginFindCallback = Option<unsafe extern "C" fn(answers: *mut OrthancPluginFindAnswers, query: *const OrthancPluginFindQuery, issuerAet: *const c_char, calledAet: *const c_char) -> OrthancPluginErrorCode>;
Expand description

@brief Callback to handle incoming C-Find SCP requests.

Signature of a callback function that is triggered whenever Orthanc receives a C-Find SCP request not concerning modality worklists.

@param answers The target structure where answers must be stored. @param query The worklist query. @param issuerAet The Application Entity Title (AET) of the modality from which the request originates. @param calledAet The Application Entity Title (AET) of the modality that is called by the request. @return 0 if success, other value if error. @ingroup DicomCallbacks

Aliased Type§

pub enum OrthancPluginFindCallback {
    None,
    Some(unsafe extern "C" fn(*mut _OrthancPluginFindAnswers_t, *const _OrthancPluginFindQuery_t, *const i8, *const i8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _OrthancPluginFindAnswers_t, *const _OrthancPluginFindQuery_t, *const i8, *const i8) -> i32)

Some value of type T.