const (
TypeInt Type = "int"
TypeUint Type = "uint"
TypeFixed Type = "fixed"
TypeString Type = "string"
TypeObject Type = "object"
TypeNewId Type = "new_id"
TypeArray Type = "array"
TypeFd Type = "fd"
ReqDestructor string = "destructor"
)
type Entry struct {
Name string `xml:"name,attr"`
Description Description `xml:"description"`
Summary string `xml:"summary,attr"`
Since int `xml:"since,attr"`
DeprecatedSince int `xml:"deprecated-since,attr"`
Value string `xml:"value,attr"`
}
type Enum struct {
Name string `xml:"name,attr"`
Description Description `xml:"description"`
Since int `xml:"since,attr"`
Bitfield bool `xml:"bitfield,attr"`
Entries []Entry `xml:"entry"`
}
type Request struct {
Name string `xml:"name,attr"`
Description Description `xml:"description"`
Since int `xml:"since,attr"`
DeprecatedSince int `xml:"deprecated-since,attr"`
Type string `xml:"type,attr"`
Args []Arg `xml:"arg"`
}