/*
* What imu.c needs of the program it is built into: here, the
* compositor's log, clock and state folder. c8-xr's driver has its own
* file of this name.
*/
#ifndef C8_IMU_HOST_H
#define C8_IMU_HOST_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <wlr/util/log.h>
#define IMU_ERROR WLR_ERROR
#define IMU_INFO WLR_INFO
#define IMU_DEBUG WLR_DEBUG
#define IMU_LOG(level, ...) wlr_log(level, __VA_ARGS__)
#define IMU_LOG_ERRNO(level, ...) wlr_log_errno(level, __VA_ARGS__)
int64_t c8_now_ms(void);
int64_t c8_now_ns(void);
/* name in ~/.local/state/cont8nuum (made if make) */
bool c8_state_path(const char *name, char *path, size_t size, bool make);
#endif