Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/mozapps/update/nsIUpdateService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIUpdatePatch",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute AString type; */
Method {
name: "GetType",
params: &[Param { name: "aType", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString URL; */
Method {
name: "GetURL",
params: &[Param { name: "aURL", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* attribute AString finalURL; */
Method {
name: "GetFinalURL",
params: &[Param { name: "aFinalURL", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetFinalURL",
params: &[Param { name: "aFinalURL", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long size; */
Method {
name: "GetSize",
params: &[Param { name: "aSize", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* attribute AString state; */
Method {
name: "GetState",
params: &[Param { name: "aState", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetState",
params: &[Param { name: "aState", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* attribute long errorCode; */
Method {
name: "GetErrorCode",
params: &[Param { name: "aErrorCode", ty: "*mut i32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetErrorCode",
params: &[Param { name: "aErrorCode", ty: "i32" }],
ret: "::nserror::nsresult",
},
/* attribute boolean selected; */
Method {
name: "GetSelected",
params: &[Param { name: "aSelected", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetSelected",
params: &[Param { name: "aSelected", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* Element serialize (in Document updates); */
Method {
name: "Serialize",
params: &[Param { name: "updates", ty: "*const libc::c_void" }, Param { name: "_retval", ty: "*mut *const libc::c_void" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdate",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute AString type; */
Method {
name: "GetType",
params: &[Param { name: "aType", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString name; */
Method {
name: "GetName",
params: &[Param { name: "aName", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString displayVersion; */
Method {
name: "GetDisplayVersion",
params: &[Param { name: "aDisplayVersion", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString appVersion; */
Method {
name: "GetAppVersion",
params: &[Param { name: "aAppVersion", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString platformVersion; */
Method {
name: "GetPlatformVersion",
params: &[Param { name: "aPlatformVersion", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString previousAppVersion; */
Method {
name: "GetPreviousAppVersion",
params: &[Param { name: "aPreviousAppVersion", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString buildID; */
Method {
name: "GetBuildID",
params: &[Param { name: "aBuildID", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString detailsURL; */
Method {
name: "GetDetailsURL",
params: &[Param { name: "aDetailsURL", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString serviceURL; */
Method {
name: "GetServiceURL",
params: &[Param { name: "aServiceURL", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString channel; */
Method {
name: "GetChannel",
params: &[Param { name: "aChannel", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean unsupported; */
Method {
name: "GetUnsupported",
params: &[Param { name: "aUnsupported", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* attribute long long promptWaitTime; */
Method {
name: "GetPromptWaitTime",
params: &[Param { name: "aPromptWaitTime", ty: "*mut i64" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetPromptWaitTime",
params: &[Param { name: "aPromptWaitTime", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* attribute boolean isCompleteUpdate; */
Method {
name: "GetIsCompleteUpdate",
params: &[Param { name: "aIsCompleteUpdate", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetIsCompleteUpdate",
params: &[Param { name: "aIsCompleteUpdate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* attribute long long installDate; */
Method {
name: "GetInstallDate",
params: &[Param { name: "aInstallDate", ty: "*mut i64" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetInstallDate",
params: &[Param { name: "aInstallDate", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* attribute AString statusText; */
Method {
name: "GetStatusText",
params: &[Param { name: "aStatusText", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetStatusText",
params: &[Param { name: "aStatusText", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIUpdatePatch selectedPatch; */
Method {
name: "GetSelectedPatch",
params: &[Param { name: "aSelectedPatch", ty: "*mut *const nsIUpdatePatch" }],
ret: "::nserror::nsresult",
},
/* attribute AString state; */
Method {
name: "GetState",
params: &[Param { name: "aState", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetState",
params: &[Param { name: "aState", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* attribute long errorCode; */
Method {
name: "GetErrorCode",
params: &[Param { name: "aErrorCode", ty: "*mut i32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetErrorCode",
params: &[Param { name: "aErrorCode", ty: "i32" }],
ret: "::nserror::nsresult",
},
/* attribute boolean elevationFailure; */
Method {
name: "GetElevationFailure",
params: &[Param { name: "aElevationFailure", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetElevationFailure",
params: &[Param { name: "aElevationFailure", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long patchCount; */
Method {
name: "GetPatchCount",
params: &[Param { name: "aPatchCount", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* nsIUpdatePatch getPatchAt (in unsigned long index); */
Method {
name: "GetPatchAt",
params: &[Param { name: "index", ty: "u32" }, Param { name: "_retval", ty: "*mut *const nsIUpdatePatch" }],
ret: "::nserror::nsresult",
},
/* Element serialize (in Document updates); */
Method {
name: "Serialize",
params: &[Param { name: "updates", ty: "*const libc::c_void" }, Param { name: "_retval", ty: "*mut *const libc::c_void" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdateCheckResult",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "nsIUpdateCheck",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIUpdateCheckerInternal",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* nsIUpdateCheck checkForUpdates (in long checkType); */
Method {
name: "CheckForUpdates",
params: &[Param { name: "checkType", ty: "i32" }, Param { name: "_retval", ty: "*mut *const nsIUpdateCheck" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdateChecker",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIApplicationUpdateServiceInternal",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIApplicationUpdateService",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIUpdateProcessor",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void processUpdate (); */
Method {
name: "ProcessUpdate",
params: &[],
ret: "::nserror::nsresult",
},
/* boolean getServiceRegKeyExists (); */
Method {
name: "GetServiceRegKeyExists",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* long attemptAutomaticApplicationRestartWithLaunchArgs (in Array<AString> argvExtra); */
Method {
name: "AttemptAutomaticApplicationRestartWithLaunchArgs",
params: &[Param { name: "argvExtra", ty: "*const thin_vec::ThinVec<::nsstring::nsString>" }, Param { name: "_retval", ty: "*mut i32" }],
ret: "::nserror::nsresult",
},
/* void waitForProcessExit (in unsigned long pid, in unsigned long timeoutMS); */
Method {
name: "WaitForProcessExit",
params: &[Param { name: "pid", ty: "u32" }, Param { name: "timeoutMS", ty: "u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdateSyncManager",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* boolean isOtherInstanceRunning (); */
Method {
name: "IsOtherInstanceRunning",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void resetLock ([optional] in nsIFile anAppFile); */
Method {
name: "ResetLock",
params: &[Param { name: "anAppFile", ty: "*const nsIFile" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdateMutex",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* boolean isLocked (); */
Method {
name: "IsLocked",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* boolean tryLock (); */
Method {
name: "TryLock",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void unlock (); */
Method {
name: "Unlock",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUpdateManagerInternal",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIUpdateManager",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
Interface {
name: "nsIApplicationUpdateServiceStub",
base: Some("nsISupports"),
sync: false,
methods: Err("special type promise unsupported"),
},
]; D}