haskell-gi-0.14: Generate Haskell bindings for GObject Introspection capable libraries

Safe HaskellNone
LanguageHaskell98

Data.GI.CodeGen.LibGIRepository

Description

A minimal wrapper for libgirepository.

Synopsis

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.

girStructSizeAndOffsets :: Text -> Text -> IO (Int, Map Text Int) Source

Find out the size of a struct, and the map from field names to offsets inside the struct.

girUnionSizeAndOffsets :: Text -> Text -> IO (Int, Map Text Int) 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.