Documentation
¶
Overview ¶
Package introspect provides some utilities for dealing with the DBus introspection format.
Index ¶
Constants ¶
View Source
const ( ExtendFieldI18nDir = "com.deepin.DBus.I18n.Dir" ExtendFieldI18nDomain = "com.deepin.DBus.I18n.Domain" ExtendFieldNoReply = "org.freedesktop.DBus.Method.NoReply" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationInfo ¶
Annotation is an annotation in the introspection format.
type AnnotationInfos ¶
type AnnotationInfos []AnnotationInfo
func (AnnotationInfos) FieldValue ¶
func (annos AnnotationInfos) FieldValue(field string) (string, bool)
type ArgInfo ¶
type ArgInfo struct { Name string `xml:"name,attr,omitempty"` Type string `xml:"type,attr"` Direction string `xml:"direction,attr,omitempty"` Annotations []AnnotationInfo `xml:"annotation"` }
Arg represents an argument of a method or a signal.
type InterfaceInfo ¶
type InterfaceInfo struct { Name string `xml:"name,attr"` Methods []MethodInfo `xml:"method"` Signals []SignalInfo `xml:"signal"` Properties []PropertyInfo `xml:"property"` Annotations []AnnotationInfo `xml:"annotation"` }
Interface describes a DBus interface that is available on the message bus.
type MethodInfo ¶
type MethodInfo struct { Name string `xml:"name,attr"` Args []ArgInfo `xml:"arg"` Annotations []AnnotationInfo `xml:"annotation"` }
Method describes a Method on an Interface as retured by an introspection.
func (MethodInfo) NoReply ¶
func (m MethodInfo) NoReply() bool
type NodeInfo ¶
type NodeInfo struct { XMLName xml.Name `xml:"node"` Name string `xml:"name,attr,omitempty"` Interfaces []InterfaceInfo `xml:"interface"` Children []NodeInfo `xml:"node,omitempty"` }
Node is the root element of an introspection.
type PropertyInfo ¶
type PropertyInfo struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` Access string `xml:"access,attr"` Annotations []AnnotationInfo `xml:"annotation"` }
Property describes a property of an Interface.
type SignalInfo ¶
type SignalInfo struct { Name string `xml:"name,attr"` Args []ArgInfo `xml:"arg"` Annotations []AnnotationInfo `xml:"annotation"` }
Signal describes a Signal emitted on an Interface.
Click to show internal directories.
Click to hide internal directories.