Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Information about a method on an D-Bus interface.
Since: 2.26
Synopsis
- newtype DBusMethodInfo = DBusMethodInfo (ManagedPtr DBusMethodInfo)
- newZeroDBusMethodInfo :: MonadIO m => m DBusMethodInfo
- dBusMethodInfoRef :: (HasCallStack, MonadIO m) => DBusMethodInfo -> m DBusMethodInfo
- dBusMethodInfoUnref :: (HasCallStack, MonadIO m) => DBusMethodInfo -> m ()
- clearDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> m ()
- getDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusAnnotationInfo])
- setDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusAnnotationInfo) -> m ()
- clearDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> m ()
- getDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusArgInfo])
- setDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusArgInfo) -> m ()
- clearDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> m ()
- getDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> m (Maybe Text)
- setDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> CString -> m ()
- clearDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> m ()
- getDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusArgInfo])
- setDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusArgInfo) -> m ()
- getDBusMethodInfoRefCount :: MonadIO m => DBusMethodInfo -> m Int32
- setDBusMethodInfoRefCount :: MonadIO m => DBusMethodInfo -> Int32 -> m ()
Exported types
newtype DBusMethodInfo Source #
Memory-managed wrapper type.
Instances
newZeroDBusMethodInfo :: MonadIO m => m DBusMethodInfo Source #
Construct a DBusMethodInfo
struct initialized to zero.
Methods
Overloaded methods
ref
:: (HasCallStack, MonadIO m) | |
=> DBusMethodInfo |
|
-> m DBusMethodInfo | Returns: The same |
If info
is statically allocated does nothing. Otherwise increases
the reference count.
Since: 2.26
unref
:: (HasCallStack, MonadIO m) | |
=> DBusMethodInfo |
|
-> 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.
clearDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> m () Source #
Set the value of the “annotations
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#annotations
getDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusAnnotationInfo]) Source #
Get the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
get
dBusMethodInfo #annotations
setDBusMethodInfoAnnotations :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusAnnotationInfo) -> m () Source #
Set the value of the “annotations
” field.
When overloading is enabled, this is equivalent to
set
dBusMethodInfo [ #annotations:=
value ]
inArgs
A pointer to a Nothing
-terminated array of pointers to DBusArgInfo
structures or Nothing
if there are no in arguments.
clearDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> m () Source #
Set the value of the “in_args
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#inArgs
getDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusArgInfo]) Source #
Get the value of the “in_args
” field.
When overloading is enabled, this is equivalent to
get
dBusMethodInfo #inArgs
setDBusMethodInfoInArgs :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusArgInfo) -> m () Source #
Set the value of the “in_args
” field.
When overloading is enabled, this is equivalent to
set
dBusMethodInfo [ #inArgs:=
value ]
name
The name of the D-Bus method, e.g. requestName
.
clearDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> m () Source #
Set the value of the “name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
getDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> m (Maybe Text) Source #
Get the value of the “name
” field.
When overloading is enabled, this is equivalent to
get
dBusMethodInfo #name
setDBusMethodInfoName :: MonadIO m => DBusMethodInfo -> CString -> m () Source #
Set the value of the “name
” field.
When overloading is enabled, this is equivalent to
set
dBusMethodInfo [ #name:=
value ]
outArgs
A pointer to a Nothing
-terminated array of pointers to DBusArgInfo
structures or Nothing
if there are no out arguments.
clearDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> m () Source #
Set the value of the “out_args
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#outArgs
getDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> m (Maybe [DBusArgInfo]) Source #
Get the value of the “out_args
” field.
When overloading is enabled, this is equivalent to
get
dBusMethodInfo #outArgs
setDBusMethodInfoOutArgs :: MonadIO m => DBusMethodInfo -> Ptr (Ptr DBusArgInfo) -> m () Source #
Set the value of the “out_args
” field.
When overloading is enabled, this is equivalent to
set
dBusMethodInfo [ #outArgs:=
value ]
refCount
The reference count or -1 if statically allocated.
getDBusMethodInfoRefCount :: MonadIO m => DBusMethodInfo -> m Int32 Source #
Get the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
get
dBusMethodInfo #refCount
setDBusMethodInfoRefCount :: MonadIO m => DBusMethodInfo -> Int32 -> m () Source #
Set the value of the “ref_count
” field.
When overloading is enabled, this is equivalent to
set
dBusMethodInfo [ #refCount:=
value ]