diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-08-08 22:31:35 +0200 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-08-23 22:59:06 +0000 |
commit | 4efe903a671b288ac485f2d2a9c9aabf2eb7b199 (patch) | |
tree | 659780aa11988cbac0b3ab744eddf7a66a791fcd /hsm-cam/FFI/Cam.hpp | |
parent | b679114531a5054487123252b6e3a9d22b7c27a7 (diff) |
Adds libcamera bindings
Diffstat (limited to 'hsm-cam/FFI/Cam.hpp')
-rw-r--r-- | hsm-cam/FFI/Cam.hpp | 25 |
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 |