Safe Haskell | None |
---|---|
Language | Haskell98 |
A minimal wrapper for libgirepository.
- girRequire :: Text -> Text -> IO Typelib
- data FieldInfo = FieldInfo {}
- girStructFieldInfo :: Text -> Text -> IO (Int, Map Text FieldInfo)
- girUnionFieldInfo :: Text -> Text -> IO (Int, Map Text FieldInfo)
- girLoadGType :: Text -> Text -> IO GType
Documentation
girRequire :: Text -> Text -> IO Typelib Source #
Ensure that the given version of the namespace is loaded. If that is not possible we error out.
Extra info about a field in a struct or union which is not easily determined from the GIR file. (And which we determine by using libgirepository.)
girStructFieldInfo :: Text -> Text -> IO (Int, Map Text FieldInfo) Source #
Find out the size of a struct, and the map from field names to offsets inside the struct.
girUnionFieldInfo :: Text -> Text -> IO (Int, Map Text FieldInfo) Source #
Find out the size of a union, and the map from field names to offsets inside the union.
girLoadGType :: Text -> Text -> IO GType Source #
Load a GType given the namespace where it lives and the type init function.