From 00e25d0ccb114b5c4cce4e79e7e0ef164bf57f99 Mon Sep 17 00:00:00 2001 From: krangelov Date: Fri, 6 Mar 2020 12:29:08 +0100 Subject: an API to access the names of all fields withing a category --- src/runtime/haskell-bind/PGF2/FFI.hsc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runtime/haskell-bind/PGF2') diff --git a/src/runtime/haskell-bind/PGF2/FFI.hsc b/src/runtime/haskell-bind/PGF2/FFI.hsc index 2db9577a0..b348f5012 100644 --- a/src/runtime/haskell-bind/PGF2/FFI.hsc +++ b/src/runtime/haskell-bind/PGF2/FFI.hsc @@ -313,6 +313,9 @@ foreign import ccall "pgf/pgf.h pgf_category_context" foreign import ccall "pgf/pgf.h pgf_category_prob" pgf_category_prob :: Ptr PgfPGF -> CString -> IO (#type prob_t) +foreign import ccall "pgf/pgf.h pgf_category_fields" + pgf_category_fields :: Ptr PgfConcr -> CString -> Ptr CSize -> IO (Ptr CString) + foreign import ccall "pgf/pgf.h pgf_iter_functions" pgf_iter_functions :: Ptr PgfPGF -> Ptr GuMapItor -> Ptr GuExn -> IO () -- cgit v1.2.3