Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/network/interfaces/nsITCPSocketCallback.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsITCPSocketCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void fireErrorEvent (in AString name, in AString type, in nsresult errorCode); */
Method {
name: "FireErrorEvent",
params: &[Param { name: "name", ty: "*const ::nsstring::nsAString" }, Param { name: "type_", ty: "*const ::nsstring::nsAString" }, Param { name: "errorCode", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
/* void fireDataStringEvent (in AString type, in ACString data); */
Method {
name: "FireDataStringEvent",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsAString" }, Param { name: "data", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void fireDataArrayEvent (in AString type, in Array<uint8_t> data); */
Method {
name: "FireDataArrayEvent",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsAString" }, Param { name: "data", ty: "*const thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
/* void fireEvent (in AString type); */
Method {
name: "FireEvent",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void updateReadyState (in unsigned long readystate); */
Method {
name: "UpdateReadyState",
params: &[Param { name: "readystate", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* void updateBufferedAmount (in uint32_t bufferedAmount, in uint32_t trackingNumber); */
Method {
name: "UpdateBufferedAmount",
params: &[Param { name: "bufferedAmount", ty: "u32" }, Param { name: "trackingNumber", ty: "u32" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}