/* ===========================================================================

  IRIS_NET_DEFINE.H    DEFINES for IRISNET 

=============================================================================*/
#ifndef IRIS_NET_DEFINE_H
#define IRIS_NET_DEFINE_H

#ifdef IRIS_NET_DEFINE_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

/* defines */


/**********************************************************************
**
** NOTE NOTE NOTE
**
** If MAX_NUM_SITE_TOOLS is changed, the loaded/saved params will be
** a different size than what was saved in a config file.  Therefore the
** IRISNET_FILE_FORMAT string has to be changed and irisnet will have to
** be reconfigured.
** Currently TOTAL_SITE_TOOLS is 14 which means we can add 2 more 
** SITE_TOOLS before we need to increase MAX_NUM_SITE_TOOLS which is 16.
***********************************************************************/

/*************************************
** Draw tools
*************************************/
#define DRAW_TOOL_NONE    1
#define DRAW_TOOL_SELECT  2
#define DRAW_TOOL_CONNECT 3
#define DRAW_TOOL_DELETE  4
#define DRAW_TOOL_RADAR   5
#define DRAW_TOOL_ANAL    6
#define DRAW_TOOL_RVP     7
#define DRAW_TOOL_RCP     8

/******************************************
** Num of sites and connects. Also on the
** local machine DATA (Not used yet), IRIS
** and MANUALS are considered sites.
*******************************************/

#define TOTAL_CONNECTS 60
#define TOTAL_SITES 30                            /* 0 - 29 sites */
#define TOTAL_SITES_PLUS_EXTRA  TOTAL_SITES + 2  /* 30 sites + iris + manuals */
#define DATA_SITE_NUM           TOTAL_SITES - 1  /* 29 is DATA SITE */
#define IRIS_SITE_NUM           TOTAL_SITES      /* 30 is IRIS */
#define MANUALS_SITE_NUM        TOTAL_SITES + 1  /* 31 is MANUALS */

#define SITE_TYPE_RADAR         1
#define SITE_TYPE_ANAL          2
#define SITE_TYPE_IRIS          3
#define SITE_TYPE_MANUALS       4
#define SITE_TYPE_DATA          5
#define SITE_TYPE_RVP           6
#define SITE_TYPE_RCP           7

/*****************************************
** min, max for processes and update time
*****************************************/
#define MIN_NUM_PROCESS         2
#define MAX_NUM_PROCESS         15
#define MIN_UPDATE_TIME         15   // seconds
#define MAX_UPDATE_TIME         120  // seconds
/*#define TOTAL_NUM_PROCESSES     5 */

/*****************************************
** Process that can be executed
** from irisnet
****************************************/
/* Local Site Tools */
#define SITE_TOOL_IRIS          1
#define SITE_TOOL_MANUALS       2
#define SITE_TOOL_RCP           3

#define TOTAL_SITE_TOOLS        14 /*If>16 need to increase MAX_NUM_SITE_TOOLS*/
/* Local or Remote Site Tools */
#define SITE_TOOL_SETUP         4
#define SITE_TOOL_COLORSETUP    5
#define SITE_TOOL_XTERM         6 
#define SITE_TOOL_QIRIS         7
#define SITE_TOOL_SIRIS         8
#define SITE_TOOL_UTILITIES     9
#define SITE_TOOL_VRIBBON       10
#define SITE_TOOL_RIBSETUP      11
#define SITE_TOOL_RUNWAYS       12
#define SITE_TOOL_RTDISP        13
#define SITE_TOOL_AUDIOX        14
#define SITE_TOOL_OVERLAY       15
#define SITE_TOOL_INSTALL       16
#define SITE_TOOL_SIGBRU        17

#define MAX_NUM_SITE_TOOLS      16  /* See note at top */ 

/*******************************************
** SPECIAL CASE WON'T AFFECT ABOVE COUNT
*********************************************/
#define IRIS_VERSION            50

/*******************************************
** Status returned when polling iris server
*******************************************/
#define IRISNET_SIRIS_UNKNOWN                 1
#define IRISNET_SIRIS_RUNNING                 2
#define IRISNET_SIRIS_DEAD                    3
#define IRISNET_SIRIS_UNKNOWNHOST             4
#define IRISNET_SIRIS_PMAPFAILURE             5  /* Has known hostname. Just
                                                 ** can't ping causes hang for
                                                 ** ~30 seconds */
#define IRISNET_SIRIS_STAT_INFO_CRITICAL      6
#define IRISNET_SIRIS_STAT_INFO_NON_CRITICAL  7

/*********************************
** Misc
*********************************/
#define MAX_WIDTH            1000
#define MAX_HEIGHT           1000
#define FREE_SLOT            9999
#define IRISNET_FILE_FORMAT  "irisnet_file_format_12_28_99"


#undef EXTERN
#endif

