VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
advttyd.h
Go to the documentation of this file.
1#ifndef _ADVTTY_H
2#define _ADVTTY_H
3
4#include "advconf.h"
5
6#define CF_MAXSTRLEN 32
7#define CF_CONFNAME ("advttyd.conf")
8#define CF_PORTPROG ("vcomd")
9#define CF_SSLCONF ("ssl.json")
10#define CF_VERSION ("1.20")
11
12#define CF_MAXPORTS VCOM_PORTS
13
14#define MON_PATH "/tmp/advmon"
15#define SSL_LOG_DIR "/tmp/advsslmsg"
16
17//#define ADVTTYD_DEBUG
18#ifdef ADVTTYD_DEBUG
19#define ADV_LOGMSG(FMT, ...) \
20 do { \
21 char buf[1024]; \
22 sprintf(buf, FMT, ## __VA_ARGS__); \
23 log_msg(buf); \
24 } while(0)
25#else
26#define ADV_LOGMSG(FMT, ...) while(0)
27#endif
28
29#endif