libheif-hs-0.1.0.0: src-wasm/Codec/HEIF/Bindings/Generated/Global.hs
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}
module Codec.HEIF.Bindings.Generated.Global
( Codec.HEIF.Bindings.Generated.Global.heif_error_success
)
where
import qualified HsBindgen.Runtime.PtrConst as PtrConst
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import Codec.HEIF.Bindings.Generated
$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
[ "#include <libheif/heif.h>"
, "/* org_libheifhs_Codec.HEIF.Bindings.Generated_get_heif_error_success */"
, "__attribute__ ((const))"
, "heif_error const *hs_bindgen_709a0362ac0b2f83 (void)"
, "{"
, " return &heif_error_success;"
, "}"
]))
-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_get_heif_error_success@
foreign import ccall unsafe "hs_bindgen_709a0362ac0b2f83" hs_bindgen_709a0362ac0b2f83_base ::
IO (BG.Ptr BG.Void)
-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_get_heif_error_success@
hs_bindgen_709a0362ac0b2f83 :: IO (PtrConst.PtrConst Heif_error)
hs_bindgen_709a0362ac0b2f83 =
BG.fromFFIType hs_bindgen_709a0362ac0b2f83_base
{-# NOINLINE hs_bindgen_1c82b35685b91c76 #-}
{-| __C declaration:__ @heif_error_success@
__defined at:__ @libheif\/heif_error.h 304:37@
__exported by:__ @libheif\/heif.h@
__unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_heif_error_success@
-}
hs_bindgen_1c82b35685b91c76 :: PtrConst.PtrConst Heif_error
hs_bindgen_1c82b35685b91c76 =
BG.unsafePerformIO hs_bindgen_709a0362ac0b2f83
{-# NOINLINE heif_error_success #-}
heif_error_success :: Heif_error
heif_error_success =
BG.unsafePerformIO (PtrConst.peek hs_bindgen_1c82b35685b91c76)