gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.DBusNodeInfo

Contents

Description

Information about nodes in a remote object hierarchy.

Synopsis

Exported types

newZeroDBusNodeInfo :: MonadIO m => m DBusNodeInfo Source #

Construct a DBusNodeInfo struct initialized to zero.

Methods

generateXml

dBusNodeInfoGenerateXml Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusNodeInfo

info: A DBusNodeInfo.

-> Word32

indent: Indentation level.

-> m String 

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

dBusNodeInfoLookupInterface Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusNodeInfo

info: A DBusNodeInfo.

-> Text

name: A D-Bus interface name.

-> m DBusInterfaceInfo

Returns: A DBusInterfaceInfo or Nothing if not found. Do not free, it is owned by info.

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

xmlData: Valid D-Bus introspection XML.

-> m DBusNodeInfo

Returns: A DBusNodeInfo structure or Nothing if error is set. Free with dBusNodeInfoUnref. (Can throw GError)

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][glib-Simple-XML-Subset-Parser.description]-based parser that only accepts a subset of valid XML documents.

Since: 2.26

ref

dBusNodeInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusNodeInfo

info: A DBusNodeInfo

-> m DBusNodeInfo

Returns: The same info.

If info is statically allocated does nothing. Otherwise increases the reference count.

Since: 2.26

unref

dBusNodeInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusNodeInfo

info: A 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

interfaces

nodes

path

refCount