//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/ml/nsIMLModelHub.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIMLModelDownloadProgressCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onProgress (in long aProgress, in long long aCurrentLoaded, in long long aTotalLoaded, in long long aTotal); */
Method {
name: "OnProgress",
params: &[Param { name: "aProgress", ty: "i32" }, Param { name: "aCurrentLoaded", ty: "i64" }, Param { name: "aTotalLoaded", ty: "i64" }, Param { name: "aTotal", ty: "i64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIMLModelDownloadCompletionCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onSuccess (in AString aModel, in AString aRevision); */
Method {
name: "OnSuccess",
params: &[Param { name: "aModel", ty: "*const ::nsstring::nsAString" }, Param { name: "aRevision", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void onError (in AString aError); */
Method {
name: "OnError",
params: &[Param { name: "aError", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIMLModelHub",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
]; D}