Skip to main content

WSLPluginAPI_OnDistributionRegistered

Type Alias WSLPluginAPI_OnDistributionRegistered 

Source
pub type WSLPluginAPI_OnDistributionRegistered = Option<unsafe extern "C" fn(Session: *const WSLSessionInformation, Distribution: *const WslOfflineDistributionInformation) -> HRESULT>;
Expand description

Called when a distribution is registered or unregisteed. Returning failure will NOT cause the operation to fail.

Aliased Type§

pub enum WSLPluginAPI_OnDistributionRegistered {
    None,
    Some(unsafe extern "C" fn(*const WSLSessionInformation, *const WslOfflineDistributionInformation) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const WSLSessionInformation, *const WslOfflineDistributionInformation) -> i32)

Some value of type T.