{-# LANGUAGE CApiFFI #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_HADDOCK prune #-} module Example.FunPtr where import qualified GHC.IO.Unsafe import qualified GHC.Ptr as Ptr import qualified HsBindgen.Runtime.ConstantArray import qualified HsBindgen.Runtime.Internal.CAPI import qualified HsBindgen.Runtime.Internal.HasFFIType import Data.Void (Void) import Example import Prelude (IO) $(HsBindgen.Runtime.Internal.CAPI.addCSource (HsBindgen.Runtime.Internal.CAPI.unlines [ "#include " , "/* test_edgecasesspec_examples_Example_get_resample */" , "__attribute__ ((const))" , "void (*hs_bindgen_2b8fc800dad87ec8 (void)) (" , " int32_T *arg1," , " cint16_T arg2[30720000]," , " int64_T arg3," , " int64_T arg4," , " cint16_T arg5[30720000]" , ")" , "{" , " return &resample;" , "}" ])) -- __unique:__ @test_edgecasesspec_examples_Example_get_resample@ foreign import ccall unsafe "hs_bindgen_2b8fc800dad87ec8" hs_bindgen_2b8fc800dad87ec8_base :: IO (Ptr.FunPtr Void) -- __unique:__ @test_edgecasesspec_examples_Example_get_resample@ hs_bindgen_2b8fc800dad87ec8 :: IO (Ptr.FunPtr ((Ptr.Ptr Int32_T) -> ((HsBindgen.Runtime.ConstantArray.ConstantArray 30720000) Cint16_T) -> Int64_T -> Int64_T -> ((HsBindgen.Runtime.ConstantArray.ConstantArray 30720000) Cint16_T) -> IO ())) hs_bindgen_2b8fc800dad87ec8 = HsBindgen.Runtime.Internal.HasFFIType.fromFFIType hs_bindgen_2b8fc800dad87ec8_base {-# NOINLINE resample #-} {-| __C declaration:__ @resample@ __defined at:__ @edge-cases\/spec_examples.h 31:6@ __exported by:__ @edge-cases\/spec_examples.h@ -} resample :: Ptr.FunPtr ((Ptr.Ptr Int32_T) -> ((HsBindgen.Runtime.ConstantArray.ConstantArray 30720000) Cint16_T) -> Int64_T -> Int64_T -> ((HsBindgen.Runtime.ConstantArray.ConstantArray 30720000) Cint16_T) -> IO ()) resample = GHC.IO.Unsafe.unsafePerformIO hs_bindgen_2b8fc800dad87ec8