/*
 *========================================================================
 *
 *    : AZN_PLAZA_LANE APP
 *      : chg_struc.h
 *      : JBY
 *      : 2018.07.13
 *      : 
 *        : FILE->TBL, TBL->FILE    
 *
 *========================================================================
*/

#ifndef    _CHG_STRUC
#define    _CHG_STRUC

#include "file_ctrl.h"
struct  chg_struc {
    time_t   time;          /* redo logging time stamp        */
    uchar    year[4];       /*                              */
    uchar    mon[2];        /*                              */
    uchar    day[2];        /*                              */
    uchar    hr[2];         /*                              */
    uchar    min[2];        /*                              */
    uchar    sec[2];        /*                              */
    uchar    plz_id[6];     /*                      */
    uchar    grp_id[6];     /*   ID                 */
    uchar    lane_no[2];    /* ещ                       */
    uchar    gdiv;          /* GROUP (0: 1:)    */
    uchar    seq_no[8];     /*                        */
    uchar    knd;           /* DATA                       */
    uchar    file_id;       /* FILE ID #                      */
    uchar    tbl2file_div;  /* 0 : FILE->TBL, 1: TBL->FILE    */
    uchar    file_year[4];  /* FILE DIRECTORY               */
    uchar    file_mon[2];   /*                              */
    uchar    file_day[2];   /*                              */
    uchar    caller;        /* caller(requester)              */
                            /* 99: internal                   */
    uchar    filler[4];     /* filler                         */
};

#if 0
static struct keydesc chg_struc_key[] = { 
    {ISNODUPS,  1, {{0, 33, CHARTYPE}}, 33, 0},
    {-1,        0, {{0,  0, 0 }}, 0, 0}
};
#endif
#endif
