Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Structs.DBusNodeInfo
Description
Information about nodes in a remote object hierarchy.
Since: 2.26
Synopsis
- newtype DBusNodeInfo = DBusNodeInfo (ManagedPtr DBusNodeInfo)
- newZeroDBusNodeInfo :: MonadIO m => m DBusNodeInfo
- type family ResolveDBusNodeInfoMethod (t :: Symbol) o where ...
- data DBusNodeInfoGenerateXmlMethodInfo
- dBusNodeInfoGenerateXml :: (HasCallStack, MonadIO m) => DBusNodeInfo -> Word32 -> String -> m ()
- data DBusNodeInfoLookupInterfaceMethodInfo
- dBusNodeInfoLookupInterface :: (HasCallStack, MonadIO m) => DBusNodeInfo -> Text -> m (Maybe DBusInterfaceInfo)
- dBusNodeInfoNewForXml :: (HasCallStack, MonadIO m) => Text -> m DBusNodeInfo
- data DBusNodeInfoRefMethodInfo
- dBusNodeInfoRef :: (HasCallStack, MonadIO m) => DBusNodeInfo -> m DBusNodeInfo
- data DBusNodeInfoUnrefMethodInfo
- dBusNodeInfoUnref :: (HasCallStack, MonadIO m) => DBusNodeInfo -> m ()
- clearDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> m ()
- dBusNodeInfo_annotations :: AttrLabelProxy "annotations"
- getDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusAnnotationInfo])
- setDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusAnnotationInfo) -> m ()
- clearDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> m ()
- dBusNodeInfo_interfaces :: AttrLabelProxy "interfaces"
- getDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusInterfaceInfo])
- setDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusInterfaceInfo) -> m ()
- clearDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> m ()
- dBusNodeInfo_nodes :: AttrLabelProxy "nodes"
- getDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusNodeInfo])
- setDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusNodeInfo) -> m ()
- clearDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> m ()
- dBusNodeInfo_path :: AttrLabelProxy "path"
- getDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> m (Maybe Text)
- setDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> CString -> m ()
- dBusNodeInfo_refCount :: AttrLabelProxy "refCount"
- getDBusNodeInfoRefCount :: MonadIO m => DBusNodeInfo -> m Int32
- setDBusNodeInfoRefCount :: MonadIO m => DBusNodeInfo -> Int32 -> m ()
Exported types
newtype DBusNodeInfo Source #
Memory-managed wrapper type.
Constructors
DBusNodeInfo (ManagedPtr DBusNodeInfo) |
Instances
newZeroDBusNodeInfo :: MonadIO m => m DBusNodeInfo Source #
Construct a DBusNodeInfo
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
type family ResolveDBusNodeInfoMethod (t :: Symbol) o where ... Source #
Equations
ResolveDBusNodeInfoMethod "generateXml" o = DBusNodeInfoGenerateXmlMethodInfo | |
ResolveDBusNodeInfoMethod "lookupInterface" o = DBusNodeInfoLookupInterfaceMethodInfo | |
ResolveDBusNodeInfoMethod "ref" o = DBusNodeInfoRefMethodInfo | |
ResolveDBusNodeInfoMethod "unref" o = DBusNodeInfoUnrefMethodInfo | |
ResolveDBusNodeInfoMethod l o = MethodResolutionFailed l o :: Type |
generateXml
data DBusNodeInfoGenerateXmlMethodInfo Source #
Instances
(signature ~ (Word32 -> String -> m ()), MonadIO m) => OverloadedMethod DBusNodeInfoGenerateXmlMethodInfo DBusNodeInfo signature Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods overloadedMethod :: DBusNodeInfo -> signature # | |
OverloadedMethodInfo DBusNodeInfoGenerateXmlMethodInfo DBusNodeInfo Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods |
dBusNodeInfoGenerateXml Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> DBusNodeInfo |
|
-> Word32 |
|
-> String |
|
-> m () |
Appends an XML representation of info
(and its children) to stringBuilder
.
This function is typically used for generating introspection XML documents at run-time for
handling the org.freedesktop.DBus.Introspectable.Introspect
method.
Since: 2.26
lookupInterface
data DBusNodeInfoLookupInterfaceMethodInfo Source #
Instances
(signature ~ (Text -> m (Maybe DBusInterfaceInfo)), MonadIO m) => OverloadedMethod DBusNodeInfoLookupInterfaceMethodInfo DBusNodeInfo signature Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods overloadedMethod :: DBusNodeInfo -> signature # | |
OverloadedMethodInfo DBusNodeInfoLookupInterfaceMethodInfo DBusNodeInfo Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods |
dBusNodeInfoLookupInterface Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> DBusNodeInfo |
|
-> Text |
|
-> m (Maybe DBusInterfaceInfo) | Returns: A |
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.
Since: 2.26
newForXml
dBusNodeInfoNewForXml Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m DBusNodeInfo | Returns: A |
Parses xmlData
and returns a DBusNodeInfo
representing the data.
The introspection XML must contain exactly one top-level
<node>
element.
Note that this routine is using a GMarkup-based parser that only accepts a subset of valid XML documents.
Since: 2.26
ref
data DBusNodeInfoRefMethodInfo Source #
Instances
(signature ~ m DBusNodeInfo, MonadIO m) => OverloadedMethod DBusNodeInfoRefMethodInfo DBusNodeInfo signature Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods overloadedMethod :: DBusNodeInfo -> signature # | |
OverloadedMethodInfo DBusNodeInfoRefMethodInfo DBusNodeInfo Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods |
Arguments
:: (HasCallStack, MonadIO m) | |
=> DBusNodeInfo |
|
-> m DBusNodeInfo | Returns: The same |
If info
is statically allocated does nothing. Otherwise increases
the reference count.
Since: 2.26
unref
data DBusNodeInfoUnrefMethodInfo Source #
Instances
(signature ~ m (), MonadIO m) => OverloadedMethod DBusNodeInfoUnrefMethodInfo DBusNodeInfo signature Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods overloadedMethod :: DBusNodeInfo -> signature # | |
OverloadedMethodInfo DBusNodeInfoUnrefMethodInfo DBusNodeInfo Source # | |
Defined in GI.Gio.Structs.DBusNodeInfo Methods |
Arguments
:: (HasCallStack, MonadIO m) | |
=> DBusNodeInfo |
|
-> m () |
If info
is statically allocated, does nothing. Otherwise decreases
the reference count of info
. When its reference count drops to 0,
the memory used is freed.
Since: 2.26
Properties
annotations
A pointer to a Nothing
-terminated array of pointers to DBusAnnotationInfo
structures or Nothing
if there are no annotations.
clearDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> m () Source #
Set the value of the “annotations
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#annotations
dBusNodeInfo_annotations :: AttrLabelProxy "annotations" Source #
getDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusAnnotationInfo]) Source #
Get the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
get
dBusNodeInfo #annotations
setDBusNodeInfoAnnotations :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusAnnotationInfo) -> m () Source #
Set the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
set
dBusNodeInfo [ #annotations:=
value ]
interfaces
A pointer to a Nothing
-terminated array of pointers to DBusInterfaceInfo
structures or Nothing
if there are no interfaces.
clearDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> m () Source #
Set the value of the “interfaces
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#interfaces
dBusNodeInfo_interfaces :: AttrLabelProxy "interfaces" Source #
getDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusInterfaceInfo]) Source #
Get the value of the “interfaces
” field.
When overloading is enabled, this is equivalent to
get
dBusNodeInfo #interfaces
setDBusNodeInfoInterfaces :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusInterfaceInfo) -> m () Source #
Set the value of the “interfaces
” field.
When overloading is enabled, this is equivalent to
set
dBusNodeInfo [ #interfaces:=
value ]
nodes
A pointer to a Nothing
-terminated array of pointers to DBusNodeInfo
structures or Nothing
if there are no nodes.
clearDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> m () Source #
Set the value of the “nodes
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#nodes
dBusNodeInfo_nodes :: AttrLabelProxy "nodes" Source #
getDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> m (Maybe [DBusNodeInfo]) Source #
Get the value of the “nodes
” field.
When overloading is enabled, this is equivalent to
get
dBusNodeInfo #nodes
setDBusNodeInfoNodes :: MonadIO m => DBusNodeInfo -> Ptr (Ptr DBusNodeInfo) -> m () Source #
Set the value of the “nodes
” field.
When overloading is enabled, this is equivalent to
set
dBusNodeInfo [ #nodes:=
value ]
path
The path of the node or Nothing
if omitted. Note that this may be a relative path. See the D-Bus specification for more details.
clearDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> m () Source #
Set the value of the “path
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#path
dBusNodeInfo_path :: AttrLabelProxy "path" Source #
getDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> m (Maybe Text) Source #
Get the value of the “path
” field.
When overloading is enabled, this is equivalent to
get
dBusNodeInfo #path
setDBusNodeInfoPath :: MonadIO m => DBusNodeInfo -> CString -> m () Source #
Set the value of the “path
” field.
When overloading is enabled, this is equivalent to
set
dBusNodeInfo [ #path:=
value ]
refCount
The reference count or -1 if statically allocated.
dBusNodeInfo_refCount :: AttrLabelProxy "refCount" Source #
getDBusNodeInfoRefCount :: MonadIO m => DBusNodeInfo -> m Int32 Source #
Get the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
get
dBusNodeInfo #refCount
setDBusNodeInfoRefCount :: MonadIO m => DBusNodeInfo -> Int32 -> m () Source #
Set the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
set
dBusNodeInfo [ #refCount:=
value ]