gi-gio-2.0.24: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.DBusSignalInfo

Contents

Description

Information about a signal on a D-Bus interface.

Since: 2.26

Synopsis

Exported types

newtype DBusSignalInfo Source #

Memory-managed wrapper type.

newZeroDBusSignalInfo :: MonadIO m => m DBusSignalInfo Source #

Construct a DBusSignalInfo struct initialized to zero.

Methods

ref

dBusSignalInfoRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusSignalInfo

info: A DBusSignalInfo

-> m DBusSignalInfo

Returns: The same info.

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

Since: 2.26

unref

dBusSignalInfoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DBusSignalInfo

info: A DBusSignalInfo.

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

clearDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> m () Source #

Set the value of the “annotations” field to Nothing. When overloading is enabled, this is equivalent to

clear #annotations

getDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> m (Maybe [DBusAnnotationInfo]) Source #

Get the value of the “annotations” field. When overloading is enabled, this is equivalent to

get dBusSignalInfo #annotations

setDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> Ptr (Ptr DBusAnnotationInfo) -> m () Source #

Set the value of the “annotations” field. When overloading is enabled, this is equivalent to

set dBusSignalInfo [ #annotations := value ]

args

A pointer to a Nothing-terminated array of pointers to DBusArgInfo structures or Nothing if there are no arguments.

clearDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> m () Source #

Set the value of the “args” field to Nothing. When overloading is enabled, this is equivalent to

clear #args

getDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> m (Maybe [DBusArgInfo]) Source #

Get the value of the “args” field. When overloading is enabled, this is equivalent to

get dBusSignalInfo #args

setDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> Ptr (Ptr DBusArgInfo) -> m () Source #

Set the value of the “args” field. When overloading is enabled, this is equivalent to

set dBusSignalInfo [ #args := value ]

name

The name of the D-Bus signal, e.g. "NameOwnerChanged".

clearDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> m () Source #

Set the value of the “name” field to Nothing. When overloading is enabled, this is equivalent to

clear #name

getDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> m (Maybe Text) Source #

Get the value of the “name” field. When overloading is enabled, this is equivalent to

get dBusSignalInfo #name

setDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> CString -> m () Source #

Set the value of the “name” field. When overloading is enabled, this is equivalent to

set dBusSignalInfo [ #name := value ]

refCount

The reference count or -1 if statically allocated.

getDBusSignalInfoRefCount :: MonadIO m => DBusSignalInfo -> m Int32 Source #

Get the value of the “ref_count” field. When overloading is enabled, this is equivalent to

get dBusSignalInfo #refCount

setDBusSignalInfoRefCount :: MonadIO m => DBusSignalInfo -> Int32 -> m () Source #

Set the value of the “ref_count” field. When overloading is enabled, this is equivalent to

set dBusSignalInfo [ #refCount := value ]