Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIPermission.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIPermission",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute nsIPrincipal principal; */
Method {
name: "GetPrincipal",
params: &[Param { name: "aPrincipal", ty: "*mut*const nsIPrincipal" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString type; */
Method {
name: "GetType",
params: &[Param { name: "aType", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute uint32_t capability; */
Method {
name: "GetCapability",
params: &[Param { name: "aCapability", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute uint32_t expireType; */
Method {
name: "GetExpireType",
params: &[Param { name: "aExpireType", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute int64_t expireTime; */
Method {
name: "GetExpireTime",
params: &[Param { name: "aExpireTime", ty: "*mut i64" }],
ret: "::nserror::nsresult",
},
/* readonly attribute int64_t modificationTime; */
Method {
name: "GetModificationTime",
params: &[Param { name: "aModificationTime", ty: "*mut i64" }],
ret: "::nserror::nsresult",
},
/* boolean matches (in nsIPrincipal principal, in boolean exactHost); */
Method {
name: "Matches",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "exactHost", ty: "bool" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* boolean matchesURI (in nsIURI uri, in boolean exactHost); */
Method {
name: "MatchesURI",
params: &[Param { name: "uri", ty: "*const nsIURI" }, Param { name: "exactHost", ty: "bool" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}