aboutsummaryrefslogtreecommitdiff
path: root/hsm-cam/FFI/Cam.hpp
blob: e59fa1d46aa02fb0bc3f1a001e3acd786bbcf632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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