summaryrefslogtreecommitdiff
path: root/stacks/max25-bcpr/include/bcpr/bcpr_daemon.h
blob: 360b0ae60c8dfe06eccecb56e1e75c0615c56350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com