aboutsummaryrefslogtreecommitdiff
path: root/hsm-cam/Hsm/Cam
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-08-19 03:56:40 +0000
committerPaul Oliver <contact@pauloliver.dev>2025-08-23 22:59:12 +0000
commit307cb1b1094c73fd15eab378c27ac0073696b739 (patch)
tree730949857bd356a7d1f1739b1c8c28967d0461e4 /hsm-cam/Hsm/Cam
parent4efe903a671b288ac485f2d2a9c9aabf2eb7b199 (diff)
Improves formatting
Diffstat (limited to 'hsm-cam/Hsm/Cam')
-rw-r--r--hsm-cam/Hsm/Cam/FFI.hs (renamed from hsm-cam/Hsm/Cam/FFI.hsc)12
1 files changed, 4 insertions, 8 deletions
diff --git a/hsm-cam/Hsm/Cam/FFI.hsc b/hsm-cam/Hsm/Cam/FFI.hs
index 44f3f4b..93d2f57 100644
--- a/hsm-cam/Hsm/Cam/FFI.hsc
+++ b/hsm-cam/Hsm/Cam/FFI.hs
@@ -18,8 +18,7 @@ type Logger = Int -> CString -> IO ()
type Callback = Int -> IO ()
-foreign import ccall safe "wrapper"
- makeLogger :: Logger -> IO (FunPtr Logger)
+foreign import ccall safe "wrapper" makeLogger :: Logger -> IO (FunPtr Logger)
foreign import capi safe "Cam.hpp register_logger"
registerLogger :: FunPtr Logger -> IO ()
@@ -30,11 +29,8 @@ foreign import ccall safe "wrapper"
foreign import capi safe "Cam.hpp register_callback"
registerCallback :: FunPtr Callback -> IO ()
-foreign import capi safe "Cam.hpp initialize_ffi"
- initializeFFI :: IO ()
+foreign import capi safe "Cam.hpp initialize_ffi" initializeFFI :: IO ()
-foreign import capi safe "Cam.hpp shutdown_ffi"
- shutdownFFI :: IO ()
+foreign import capi safe "Cam.hpp shutdown_ffi" shutdownFFI :: IO ()
-foreign import capi safe "Cam.hpp request_capture"
- requestCapture :: IO ()
+foreign import capi safe "Cam.hpp request_capture" requestCapture :: IO ()