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

Contents

Description

Information about an annotation.

Synopsis

Exported types

newZeroDBusAnnotationInfo :: MonadIO m => m DBusAnnotationInfo Source #

Construct a DBusAnnotationInfo struct initialized to zero.

Methods

lookup

dBusAnnotationInfoLookup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe [DBusAnnotationInfo]

annotations: A Nothing-terminated array of annotations or Nothing.

-> Text

name: The name of the annotation to look up.

-> m Text

Returns: The value or Nothing if not found. Do not free, it is owned by annotations.

Looks up the value of an annotation.

The cost of this function is O(n) in number of annotations.

Since: 2.26

ref

dBusAnnotationInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusAnnotationInfo

info: A DBusNodeInfo

-> m DBusAnnotationInfo

Returns: The same info.

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

Since: 2.26

unref

dBusAnnotationInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusAnnotationInfo

info: A DBusAnnotationInfo.

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

key

refCount

value