Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsIDataStorage.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIDataStorageManager",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* nsIDataStorage get (in nsIDataStorageManager_DataStorage dataStorage); */
Method {
name: "Get",
params: &[Param { name: "dataStorage", ty: " u8" }, Param { name: "_retval", ty: "*mut*const nsIDataStorage" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIDataStorage",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* ACString get (in ACString key, in nsIDataStorage_DataType type); */
Method {
name: "Get",
params: &[Param { name: "key", ty: "*const ::nsstring::nsACString" }, Param { name: "type_", ty: " u8" }, Param { name: "_retval", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void put (in ACString key, in ACString value, in nsIDataStorage_DataType type); */
Method {
name: "Put",
params: &[Param { name: "key", ty: "*const ::nsstring::nsACString" }, Param { name: "value", ty: "*const ::nsstring::nsACString" }, Param { name: "type_", ty: " u8" }],
ret: "::nserror::nsresult",
},
/* void remove (in ACString key, in nsIDataStorage_DataType type); */
Method {
name: "Remove",
params: &[Param { name: "key", ty: "*const ::nsstring::nsACString" }, Param { name: "type_", ty: " u8" }],
ret: "::nserror::nsresult",
},
/* void clear (); */
Method {
name: "Clear",
params: &[],
ret: "::nserror::nsresult",
},
/* boolean isReady (); */
Method {
name: "IsReady",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* Array<nsIDataStorageItem> getAll (); */
Method {
name: "GetAll",
params: &[Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIDataStorageItem>>>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIDataStorageItem",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString key; */
Method {
name: "GetKey",
params: &[Param { name: "aKey", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString value; */
Method {
name: "GetValue",
params: &[Param { name: "aValue", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIDataStorage_DataType type; */
Method {
name: "GetType",
params: &[Param { name: "aType", ty: "*mut u8" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}