Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Information about an annotation.
Since: 2.26
Synopsis
- newtype DBusAnnotationInfo = DBusAnnotationInfo (ManagedPtr DBusAnnotationInfo)
- newZeroDBusAnnotationInfo :: MonadIO m => m DBusAnnotationInfo
- dBusAnnotationInfoLookup :: (HasCallStack, MonadIO m) => Maybe [DBusAnnotationInfo] -> Text -> m (Maybe Text)
- dBusAnnotationInfoRef :: (HasCallStack, MonadIO m) => DBusAnnotationInfo -> m DBusAnnotationInfo
- dBusAnnotationInfoUnref :: (HasCallStack, MonadIO m) => DBusAnnotationInfo -> m ()
- clearDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> m ()
- getDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> m (Maybe [DBusAnnotationInfo])
- setDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> Ptr (Ptr DBusAnnotationInfo) -> m ()
- clearDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> m ()
- getDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> m (Maybe Text)
- setDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> CString -> m ()
- getDBusAnnotationInfoRefCount :: MonadIO m => DBusAnnotationInfo -> m Int32
- setDBusAnnotationInfoRefCount :: MonadIO m => DBusAnnotationInfo -> Int32 -> m ()
- clearDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> m ()
- getDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> m (Maybe Text)
- setDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> CString -> m ()
Exported types
newtype DBusAnnotationInfo Source #
Memory-managed wrapper type.
Instances
newZeroDBusAnnotationInfo :: MonadIO m => m DBusAnnotationInfo Source #
Construct a DBusAnnotationInfo
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
lookup
dBusAnnotationInfoLookup Source #
:: (HasCallStack, MonadIO m) | |
=> Maybe [DBusAnnotationInfo] |
|
-> Text |
|
-> m (Maybe Text) | Returns: The value or |
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 #
:: (HasCallStack, MonadIO m) | |
=> DBusAnnotationInfo |
|
-> m DBusAnnotationInfo | Returns: The same |
If info
is statically allocated does nothing. Otherwise increases
the reference count.
Since: 2.26
unref
dBusAnnotationInfoUnref Source #
:: (HasCallStack, MonadIO m) | |
=> 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
A pointer to a Nothing
-terminated array of pointers to DBusAnnotationInfo
structures or Nothing
if there are no annotations.
clearDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> m () Source #
Set the value of the “annotations
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#annotations
getDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> m (Maybe [DBusAnnotationInfo]) Source #
Get the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
get
dBusAnnotationInfo #annotations
setDBusAnnotationInfoAnnotations :: MonadIO m => DBusAnnotationInfo -> Ptr (Ptr DBusAnnotationInfo) -> m () Source #
Set the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
set
dBusAnnotationInfo [ #annotations:=
value ]
key
The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated".
clearDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> m () Source #
Set the value of the “key
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#key
getDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> m (Maybe Text) Source #
Get the value of the “key
” field.
When overloading is enabled, this is equivalent to
get
dBusAnnotationInfo #key
setDBusAnnotationInfoKey :: MonadIO m => DBusAnnotationInfo -> CString -> m () Source #
Set the value of the “key
” field.
When overloading is enabled, this is equivalent to
set
dBusAnnotationInfo [ #key:=
value ]
refCount
The reference count or -1 if statically allocated.
getDBusAnnotationInfoRefCount :: MonadIO m => DBusAnnotationInfo -> m Int32 Source #
Get the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
get
dBusAnnotationInfo #refCount
setDBusAnnotationInfoRefCount :: MonadIO m => DBusAnnotationInfo -> Int32 -> m () Source #
Set the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
set
dBusAnnotationInfo [ #refCount:=
value ]
value
The value of the annotation.
clearDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> m () Source #
Set the value of the “value
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#value
getDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> m (Maybe Text) Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
dBusAnnotationInfo #value
setDBusAnnotationInfoValue :: MonadIO m => DBusAnnotationInfo -> CString -> m () Source #
Set the value of the “value
” field.
When overloading is enabled, this is equivalent to
set
dBusAnnotationInfo [ #value:=
value ]