forked from GitHub/gf-core
added the minimal Haskell API for storing expressions/triples in the semantic graph
This commit is contained in:
@@ -76,6 +76,11 @@ foreign import ccall "gu/string.h gu_string_buf_freeze"
|
||||
withGuPool :: (Ptr GuPool -> IO a) -> IO a
|
||||
withGuPool f = bracket gu_new_pool gu_pool_free f
|
||||
|
||||
newOut :: Ptr GuPool -> IO (Ptr GuStringBuf, Ptr GuOut)
|
||||
newOut pool =
|
||||
do sb <- gu_string_buf pool
|
||||
out <- gu_string_buf_out sb
|
||||
return (sb,out)
|
||||
|
||||
------------------------------------------------------------------
|
||||
-- libpgf API
|
||||
|
||||
Reference in New Issue
Block a user