#ifndef BCPR_DAEMON_H #define BCPR_DAEMON_H #include "bcpr/bcpr_config.h" #include "bcpr/bcpr_engine.h" #include "bcpr/bcpr_kiss.h" typedef struct bcpr_daemon_opts { int dry_run; int seconds; int cal_mode; int cli_txd_bias; int cli_ptt_wd; int cli_ptt_wd_key_ms; int cli_ptt_wd_pause_ms; int engine_preopened; } bcpr_daemon_opts_t; /* engine_preopened=1: lock/ioperm done in init parent; child after fork. */ int bcpr_daemon_run(bcpr_config_t *cfg, bcpr_kiss_pty_t *ptys, int npty, bcpr_engine_t *engine, const bcpr_daemon_opts_t *opts); #endif