Generated file

Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/scopedprefs/nsIScopedPrefs.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIScopedPrefs",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void setBoolPrefScoped (in nsIScopedPrefs_Pref pref, in BrowsingContext bc, in boolean value); */
Method {
name: "SetBoolPrefScoped",
params: &[Param { name: "pref", ty: "u8" }, Param { name: "bc", ty: "*const libc::c_void" }, Param { name: "value", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* boolean getBoolPrefScoped (in nsIScopedPrefs_Pref pref, in BrowsingContext bc); */
Method {
name: "GetBoolPrefScoped",
params: &[Param { name: "pref", ty: "u8" }, Param { name: "bc", ty: "*const libc::c_void" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void clearScoped (); */
Method {
name: "ClearScoped",
params: &[],
ret: "::nserror::nsresult",
},
/* void clearScopedPref (in nsIScopedPrefs_Pref pref); */
Method {
name: "ClearScopedPref",
params: &[Param { name: "pref", ty: "u8" }],
ret: "::nserror::nsresult",
},
/* void clearScopedByHost (in AUTF8String aHost); */
Method {
name: "ClearScopedByHost",
params: &[Param { name: "aHost", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void clearScopedPrefByHost (in nsIScopedPrefs_Pref pref, in AUTF8String aHost); */
Method {
name: "ClearScopedPrefByHost",
params: &[Param { name: "pref", ty: "u8" }, Param { name: "aHost", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}