Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIUDPSocket.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIUDPSocket",
base: Some("nsISupports"),
sync: false,
methods: Err("optional_argc is unsupported"),
},
Interface {
name: "nsIUDPSocketListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onPacketReceived (in nsIUDPSocket aSocket, in nsIUDPMessage aMessage); */
Method {
name: "OnPacketReceived",
params: &[Param { name: "aSocket", ty: "*const nsIUDPSocket" }, Param { name: "aMessage", ty: "*const nsIUDPMessage" }],
ret: "::nserror::nsresult",
},
/* void onStopListening (in nsIUDPSocket aSocket, in nsresult aStatus); */
Method {
name: "OnStopListening",
params: &[Param { name: "aSocket", ty: "*const nsIUDPSocket" }, Param { name: "aStatus", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUDPMessage",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "nsIUDPSocketSyncListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onPacketReceived (in nsIUDPSocket aSocket); */
Method {
name: "OnPacketReceived",
params: &[Param { name: "aSocket", ty: "*const nsIUDPSocket" }],
ret: "::nserror::nsresult",
},
/* void onStopListening (in nsIUDPSocket aSocket, in nsresult aStatus); */
Method {
name: "OnStopListening",
params: &[Param { name: "aSocket", ty: "*const nsIUDPSocket" }, Param { name: "aStatus", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}