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.DBusSignalInfo
Description
Information about a signal on a D-Bus interface.
Since: 2.26
Synopsis
- newtype DBusSignalInfo = DBusSignalInfo (ManagedPtr DBusSignalInfo)
- newZeroDBusSignalInfo :: MonadIO m => m DBusSignalInfo
- type family ResolveDBusSignalInfoMethod (t :: Symbol) o where ...
- data DBusSignalInfoRefMethodInfo
- dBusSignalInfoRef :: (HasCallStack, MonadIO m) => DBusSignalInfo -> m DBusSignalInfo
- data DBusSignalInfoUnrefMethodInfo
- dBusSignalInfoUnref :: (HasCallStack, MonadIO m) => DBusSignalInfo -> m ()
- clearDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> m ()
- dBusSignalInfo_annotations :: AttrLabelProxy "annotations"
- getDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> m (Maybe [DBusAnnotationInfo])
- setDBusSignalInfoAnnotations :: MonadIO m => DBusSignalInfo -> Ptr (Ptr DBusAnnotationInfo) -> m ()
- clearDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> m ()
- dBusSignalInfo_args :: AttrLabelProxy "args"
- getDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> m (Maybe [DBusArgInfo])
- setDBusSignalInfoArgs :: MonadIO m => DBusSignalInfo -> Ptr (Ptr DBusArgInfo) -> m ()
- clearDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> m ()
- dBusSignalInfo_name :: AttrLabelProxy "name"
- getDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> m (Maybe Text)
- setDBusSignalInfoName :: MonadIO m => DBusSignalInfo -> CString -> m ()
- dBusSignalInfo_refCount :: AttrLabelProxy "refCount"
- getDBusSignalInfoRefCount :: MonadIO m => DBusSignalInfo -> m Int32
- setDBusSignalInfoRefCount :: MonadIO m => DBusSignalInfo -> Int32 -> m ()
Exported types
newtype DBusSignalInfo Source #
Memory-managed wrapper type.
Constructors
DBusSignalInfo (ManagedPtr DBusSignalInfo) |
Instances
newZeroDBusSignalInfo :: MonadIO m => m DBusSignalInfo Source #
Construct a DBusSignalInfo
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
type family ResolveDBusSignalInfoMethod (t :: Symbol) o where ... Source #
Equations
ResolveDBusSignalInfoMethod "ref" o = DBusSignalInfoRefMethodInfo | |
ResolveDBusSignalInfoMethod "unref" o = DBusSignalInfoUnrefMethodInfo | |
ResolveDBusSignalInfoMethod l o = MethodResolutionFailed l o :: Type |
ref
data DBusSignalInfoRefMethodInfo Source #
Instances
(signature ~ m DBusSignalInfo, MonadIO m) => OverloadedMethod DBusSignalInfoRefMethodInfo DBusSignalInfo signature Source # | |
Defined in GI.Gio.Structs.DBusSignalInfo Methods overloadedMethod :: DBusSignalInfo -> signature # | |
OverloadedMethodInfo DBusSignalInfoRefMethodInfo DBusSignalInfo Source # | |
Defined in GI.Gio.Structs.DBusSignalInfo Methods |
Arguments
:: (HasCallStack, MonadIO m) | |
=> DBusSignalInfo |
|
-> m DBusSignalInfo | Returns: The same |
If info
is statically allocated does nothing. Otherwise increases
the reference count.
Since: 2.26
unref
data DBusSignalInfoUnrefMethodInfo Source #
Instances
(signature ~ m (), MonadIO m) => OverloadedMethod DBusSignalInfoUnrefMethodInfo DBusSignalInfo signature Source # | |
Defined in GI.Gio.Structs.DBusSignalInfo Methods overloadedMethod :: DBusSignalInfo -> signature # | |
OverloadedMethodInfo DBusSignalInfoUnrefMethodInfo DBusSignalInfo Source # | |
Defined in GI.Gio.Structs.DBusSignalInfo Methods |
Arguments
:: (HasCallStack, MonadIO m) | |
=> 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
dBusSignalInfo_annotations :: AttrLabelProxy "annotations" Source #
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
dBusSignalInfo_args :: AttrLabelProxy "args" Source #
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
dBusSignalInfo_name :: AttrLabelProxy "name" Source #
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.
dBusSignalInfo_refCount :: AttrLabelProxy "refCount" Source #
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 ]