Copyright | (c) Leo D 2023 |
---|---|
License | BSD-3-Clause |
Maintainer | leo@apotheca.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
type BotanViewContext a = Ptr a Source #
type BotanViewBinFn ctx Source #
= BotanViewContext ctx | view_ctx: some application context |
-> ConstPtr Word8 | data: the binary data |
-> CSize | len: the length of data in bytes |
-> CInt |
type BotanViewBinCallback ctx = FunPtr (BotanViewBinFn ctx) Source #
mallocBotanViewBinCallback :: BotanViewBinFn ctx -> IO (BotanViewBinCallback ctx) Source #
freeBotanViewBinCallback :: BotanViewBinCallback ctx -> IO () Source #
type BotanViewStrFn ctx Source #
= BotanViewContext ctx | view_ctx: some application context |
-> ConstPtr CChar | str: the null terminated string |
-> CSize | len: the length of string *including* the null terminator |
-> CInt |
type BotanViewStrCallback ctx = FunPtr (BotanViewStrFn ctx) Source #
mallocBotanViewStrCallback :: BotanViewStrFn ctx -> IO (BotanViewStrCallback ctx) Source #
freeBotanViewStrCallback :: BotanViewStrCallback ctx -> IO () Source #