- data Type
- = DBusBoolean
- | DBusByte
- | DBusInt16
- | DBusInt32
- | DBusInt64
- | DBusWord16
- | DBusWord32
- | DBusWord64
- | DBusDouble
- | DBusString
- | DBusSignature
- | DBusObjectPath
- | DBusVariant
- | DBusArray Type
- | DBusDictionary Type Type
- | DBusStructure [Type]
- typeCode :: Type -> Text
- data Variant
- class Variable a where
- toVariant :: a -> Variant
- fromVariant :: Variant -> Maybe a
- variantType :: Variant -> Type
- data Signature
- signatureTypes :: Signature -> [Type]
- strSignature :: Signature -> Text
- mkSignature :: Text -> Maybe Signature
- mkSignature' :: Text -> Signature
- data ObjectPath
- strObjectPath :: ObjectPath -> Text
- mkObjectPath :: Text -> Maybe ObjectPath
- mkObjectPath' :: Text -> ObjectPath
- data Array
- arrayType :: Array -> Type
- arrayItems :: Array -> [Variant]
- toArray :: Variable a => Type -> [a] -> Maybe Array
- fromArray :: Variable a => Array -> Maybe [a]
- arrayFromItems :: Type -> [Variant] -> Maybe Array
- data Dictionary
- dictionaryItems :: Dictionary -> [(Variant, Variant)]
- dictionaryKeyType :: Dictionary -> Type
- dictionaryValueType :: Dictionary -> Type
- toDictionary :: (Variable a, Variable b) => Type -> Type -> Map a b -> Maybe Dictionary
- fromDictionary :: (Variable a, Ord a, Variable b) => Dictionary -> Maybe (Map a b)
- dictionaryFromItems :: Type -> Type -> [(Variant, Variant)] -> Maybe Dictionary
- dictionaryToArray :: Dictionary -> Array
- arrayToDictionary :: Array -> Maybe Dictionary
- data Structure = Structure [Variant]
- data BusName
- strBusName :: BusName -> Text
- mkBusName :: Text -> Maybe BusName
- mkBusName' :: Text -> BusName
- data InterfaceName
- strInterfaceName :: InterfaceName -> Text
- mkInterfaceName :: Text -> Maybe InterfaceName
- mkInterfaceName' :: Text -> InterfaceName
- data ErrorName
- strErrorName :: ErrorName -> Text
- mkErrorName :: Text -> Maybe ErrorName
- mkErrorName' :: Text -> ErrorName
- data MemberName
- strMemberName :: MemberName -> Text
- mkMemberName :: Text -> Maybe MemberName
- mkMemberName' :: Text -> MemberName
Available types
Variants
variantType :: Variant -> TypeSource
Signatures
signatureTypes :: Signature -> [Type]Source
strSignature :: Signature -> TextSource
mkSignature :: Text -> Maybe SignatureSource
mkSignature' :: Text -> SignatureSource
Object paths
data ObjectPath Source
Arrays
arrayItems :: Array -> [Variant]Source
Dictionaries
data Dictionary Source
dictionaryItems :: Dictionary -> [(Variant, Variant)]Source
toDictionary :: (Variable a, Variable b) => Type -> Type -> Map a b -> Maybe DictionarySource
fromDictionary :: (Variable a, Ord a, Variable b) => Dictionary -> Maybe (Map a b)Source
dictionaryFromItems :: Type -> Type -> [(Variant, Variant)] -> Maybe DictionarySource
Structures
Names
Bus names
strBusName :: BusName -> TextSource
mkBusName' :: Text -> BusNameSource
Interface names
data InterfaceName Source
Error names
strErrorName :: ErrorName -> TextSource
mkErrorName :: Text -> Maybe ErrorNameSource
mkErrorName' :: Text -> ErrorNameSource