aboutsummaryrefslogtreecommitdiff
path: root/hsm-cam/FFI/Cam.hpp
blob: c2cd4ed131e6891b9220d563e7fedd85b4f2b163 (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
26
27
#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