Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/socket/nsINamedPipeService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsINamedPipeDataObserver",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onDataAvailable (in unsigned long aBytesTransferred, in voidPtr aOverlapped); */
Method {
name: "OnDataAvailable",
params: &[Param { name: "aBytesTransferred", ty: "u32" }, Param { name: "aOverlapped", ty: "*mut libc::c_void" }],
ret: "::nserror::nsresult",
},
/* void onError (in unsigned long aError, in voidPtr aOverlapped); */
Method {
name: "OnError",
params: &[Param { name: "aError", ty: "u32" }, Param { name: "aOverlapped", ty: "*mut libc::c_void" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsINamedPipeService",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void addDataObserver (in voidPtr aHandle, in nsINamedPipeDataObserver aObserver); */
Method {
name: "AddDataObserver",
params: &[Param { name: "aHandle", ty: "*mut libc::c_void" }, Param { name: "aObserver", ty: "*const nsINamedPipeDataObserver" }],
ret: "::nserror::nsresult",
},
/* void removeDataObserver (in voidPtr aHandle, in nsINamedPipeDataObserver aObserver); */
Method {
name: "RemoveDataObserver",
params: &[Param { name: "aHandle", ty: "*mut libc::c_void" }, Param { name: "aObserver", ty: "*const nsINamedPipeDataObserver" }],
ret: "::nserror::nsresult",
},
/* boolean isOnCurrentThread (); */
Method {
name: "IsOnCurrentThread",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}