gi-gio-2.0.11: 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.DBusInterfaceInfo

Contents

Description

Information about a D-Bus interface.

Synopsis

Exported types

newtype DBusInterfaceInfo Source #

Instances

BoxedObject DBusInterfaceInfo Source # 
(~) AttrOpTag tag AttrSet => Constructible DBusInterfaceInfo tag Source # 
((~) * info (ResolveDBusInterfaceInfoMethod t DBusInterfaceInfo), MethodInfo * info DBusInterfaceInfo p) => IsLabel t (DBusInterfaceInfo -> p) Source # 
((~) * info (ResolveDBusInterfaceInfoMethod t DBusInterfaceInfo), MethodInfo * info DBusInterfaceInfo p) => IsLabelProxy t (DBusInterfaceInfo -> p) Source # 
HasAttributeList * DBusInterfaceInfo Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * DBusInterfaceInfoUnrefMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (m DBusInterfaceInfo), MonadIO m) => MethodInfo * DBusInterfaceInfoRefMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (Text -> m DBusSignalInfo), MonadIO m) => MethodInfo * DBusInterfaceInfoLookupSignalMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (Text -> m DBusPropertyInfo), MonadIO m) => MethodInfo * DBusInterfaceInfoLookupPropertyMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (Text -> m DBusMethodInfo), MonadIO m) => MethodInfo * DBusInterfaceInfoLookupMethodMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (Word32 -> m String), MonadIO m) => MethodInfo * DBusInterfaceInfoGenerateXmlMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * DBusInterfaceInfoCacheReleaseMethodInfo DBusInterfaceInfo signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * DBusInterfaceInfoCacheBuildMethodInfo DBusInterfaceInfo signature Source # 
type AttributeList DBusInterfaceInfo Source # 

newZeroDBusInterfaceInfo :: MonadIO m => m DBusInterfaceInfo Source #

Construct a DBusInterfaceInfo struct initialized to zero.

Methods

cacheBuild

dBusInterfaceInfoCacheBuild Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo.

-> m () 

Builds a lookup-cache to speed up dBusInterfaceInfoLookupMethod, dBusInterfaceInfoLookupSignal and dBusInterfaceInfoLookupProperty.

If this has already been called with info, the existing cache is used and its use count is increased.

Note that info cannot be modified until dBusInterfaceInfoCacheRelease is called.

Since: 2.30

cacheRelease

dBusInterfaceInfoCacheRelease Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A GDBusInterfaceInfo

-> m () 

Decrements the usage count for the cache for info built by dBusInterfaceInfoCacheBuild (if any) and frees the resources used by the cache if the usage count drops to zero.

Since: 2.30

generateXml

dBusInterfaceInfoGenerateXml Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

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

lookupMethod

dBusInterfaceInfoLookupMethod Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo.

-> Text

name: A D-Bus method name (typically in CamelCase)

-> m DBusMethodInfo

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

Looks up information about a method.

The cost of this function is O(n) in number of methods unless dBusInterfaceInfoCacheBuild has been used on info.

Since: 2.26

lookupProperty

dBusInterfaceInfoLookupProperty Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo.

-> Text

name: A D-Bus property name (typically in CamelCase).

-> m DBusPropertyInfo

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

Looks up information about a property.

The cost of this function is O(n) in number of properties unless dBusInterfaceInfoCacheBuild has been used on info.

Since: 2.26

lookupSignal

dBusInterfaceInfoLookupSignal Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo.

-> Text

name: A D-Bus signal name (typically in CamelCase)

-> m DBusSignalInfo

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

Looks up information about a signal.

The cost of this function is O(n) in number of signals unless dBusInterfaceInfoCacheBuild has been used on info.

Since: 2.26

ref

dBusInterfaceInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo

-> m DBusInterfaceInfo

Returns: The same info.

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

Since: 2.26

unref

dBusInterfaceInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusInterfaceInfo

info: A DBusInterfaceInfo.

-> 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

methods

name

properties

refCount

signals