Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIWindowsMutex",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void tryLock (); */
Method {
name: "TryLock",
params: &[],
ret: "::nserror::nsresult",
},
/* boolean isLocked (); */
Method {
name: "IsLocked",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void unlock (); */
Method {
name: "Unlock",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIWindowsMutexFactory",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* nsIWindowsMutex createMutex (in AString aName); */
Method {
name: "CreateMutex",
params: &[Param { name: "aName", ty: "*const ::nsstring::nsAString" }, Param { name: "_retval", ty: "*mut *const nsIWindowsMutex" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}