/*
 *========================================================================
 *
 *    : GREEN_LANE_LANE APP
 *      : path_def.h
 *      : JBY
 *      : 2018.07.13
 *      : 
 *        : TCS Define directory Define     define ..
 *
 *========================================================================
*/

#define MAXBUFSIZE      3000
#define    SUCCESS      0
#if 0
#define    FALSE        0
#define    TRUE         1
#endif
#define    SOH          1
#define    STX          2
#define    ETX          3
#define    EOT          4
#define    ENQ          5
#define    BEL          7

#define    TZ               "TZ=KST-9"
#define    SHUTDOWN_WAITING    3

/* line printer device */
#define    LP        "/dev/lp0"

/* directory */
#define    IIS_DIR          "/app/tcs"
#define    DATA_DIR         "/app_data/tcs"
#define    DATA_APP_DATA    "/app_data"
#define    ROOT_DIR         IIS_DIR
#define    INI_DIR          IIS_DIR"/GREEN_LANE/ini/"
#define    BIN_DIR          IIS_DIR"/GREEN_LANE/bin/"
#define    TEMP_DIR         IIS_DIR"/temp/"
#define    SPOOL_DIR        DATA_DIR"/SPOOL/"
#define    LOG_DIR          DATA_DIR"/LOG/"

#define    INI_FILE         INI_DIR"NEIGHBOR21.INI"
#define    LCK_FILE         TEMP_DIR"LCK..ats"
#define    PIDF_IIS         TEMP_DIR".pid_iis"
#define    FIFO             TEMP_DIR"FIFO"
#define    LP_FIFO          TEMP_DIR"lp/FIFO"
#define    PERM_FIFO        0666

#define    INITD             BIN_DIR"initd"

#define    FIFO_REC         sizeof(struct fifo_msg)
#define    FIFO_MSG         512

struct    fifo_msg {
    int     len;
    char    apid[5];
    char    type;
    char    text[FIFO_MSG];
};
