Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/modules/libpref/nsIPrefService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIPrefStatsCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void visit (in ACString prefName, in unsigned long accessCount); */
Method {
name: "Visit",
params: &[Param { name: "prefName", ty: "*const ::nsstring::nsACString" }, Param { name: "accessCount", ty: "u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIPrefObserver",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onStringPref (in string kind, in string name, in string value, in boolean isSticky, in boolean isLocked); */
Method {
name: "OnStringPref",
params: &[Param { name: "kind", ty: "*const libc::c_char" }, Param { name: "name", ty: "*const libc::c_char" }, Param { name: "value", ty: "*const libc::c_char" }, Param { name: "isSticky", ty: "bool" }, Param { name: "isLocked", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void onIntPref (in string kind, in string name, in long value, in boolean isSticky, in boolean isLocked); */
Method {
name: "OnIntPref",
params: &[Param { name: "kind", ty: "*const libc::c_char" }, Param { name: "name", ty: "*const libc::c_char" }, Param { name: "value", ty: "i32" }, Param { name: "isSticky", ty: "bool" }, Param { name: "isLocked", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void onBoolPref (in string kind, in string name, in boolean value, in boolean isSticky, in boolean isLocked); */
Method {
name: "OnBoolPref",
params: &[Param { name: "kind", ty: "*const libc::c_char" }, Param { name: "name", ty: "*const libc::c_char" }, Param { name: "value", ty: "bool" }, Param { name: "isSticky", ty: "bool" }, Param { name: "isLocked", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void onError (in string message); */
Method {
name: "OnError",
params: &[Param { name: "message", ty: "*const libc::c_char" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIPrefService",
base: Some("nsISupports"),
sync: false,
methods: Err("jscontext is unsupported"),
},
]; D}