aboutsummaryrefslogtreecommitdiff
path: root/hsm-cam/FFI/Cam.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hsm-cam/FFI/Cam.hpp')
-rw-r--r--hsm-cam/FFI/Cam.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/hsm-cam/FFI/Cam.hpp b/hsm-cam/FFI/Cam.hpp
new file mode 100644
index 0000000..e59fa1d
--- /dev/null
+++ b/hsm-cam/FFI/Cam.hpp
@@ -0,0 +1,25 @@
+#ifndef CAM_HPP
+#define CAM_HPP
+
+enum Severity {
+ Attention = 0,
+ Info = 1,
+ Trace = 2,
+};
+
+typedef void (*HsLogger)(enum Severity, const char *);
+typedef void (*HsCallback)(int fd);
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void register_logger(HsLogger hs_logger);
+ void register_callback(HsCallback hs_callback);
+ void initialize_ffi();
+ void shutdown_ffi();
+ void request_capture();
+#ifdef __cplusplus
+}
+#endif
+
+#endif