/*
 *************************************************************
 *                                                           *
 *          IRIS Startup Function Prototype File             *
 *                                                           *
 *************************************************************
 * File: iris/siris/siris.h
 *          COPYRIGHT (c) 1992, 1994, 1997, 1998, 2002, 2003 BY
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED.
 */

#define     BAD_OUTPUT      1
#define RAD_BAD_OUTPUT     (RADAR_FACILITY + BAD_OUTPUT)
#define     RELOAD_FAIL     2
#define RAD_RELOAD_FAIL    (RADAR_FACILITY + RELOAD_FAIL)
#define     RELOAD_OKAY     3
#define RAD_RELOAD_OKAY    (RADAR_FACILITY + RELOAD_OKAY)
#define     RESTART         4
#define RAD_RESTART        (RADAR_FACILITY + RESTART)
#define     TMP_FEAT_LIC    5
#define RAD_TMP_FEAT_LIC   (RADAR_FACILITY + TMP_FEAT_LIC)
#define     TMP_PROD_LIC    6
#define RAD_TMP_PROD_LIC   (RADAR_FACILITY + TMP_PROD_LIC)
#define     TIME_USING_DST  7
#define RAD_TIME_USING_DST (RADAR_FACILITY + TIME_USING_DST)

#ifndef MESSAGE_ONLY                      

void create_error_log		/* File: create_error_log.C */
( const struct full_time_spec *StartUpTime_a,
  SINT4 iNumKeptLogs_a,
  const char *siteName3_a ) ;

void fork_required_processes	/* File: iris_processes.c */
( UINT4 ilicprocs_a,
  UINT2 lrestart_a,		/* This is a restart request */
  UINT2 lresurrect_a,		/* Only restart fatally crashed processes */
  UINT2 lprint_a) ;		/* Print informational messages */

#ifdef SIGMET_INGEST_H
void ingest_dir_scanfiles       /* File: scanfiles.c */
(volatile struct ingest_inventory *ss_a, 
 UINT2 *ldelete_a );
#endif  /* #ifdef SIGMET_INGEST_H */

MESSAGE iradar_signal_handler	/* File: radar_signal_handler.c */
( MESSAGE istatus_a,
  UINT4 icount_a,
  const UINT4 isigargs_a[] ) ;

void iris_kill_processes	/* File: iris_processes.c */
( UINT2 lant_a ) ;

void iris_kill_remains		/* File: iris_processes.c */
( void ) ;

UINT2 iris_shmem_inuse		/* File: iris_processes.c */
( UINT2 lprint_a ) ;

MESSAGE pcf_dir_scanfiles	/* File: product_dir.for */
( void ) ;

MESSAGE product_dir_scanfiles	/* File: scanfiles.c */
( const char *directory_a,
  UINT2 ldelete_a,
  UINT1 pmask_a[],
  UINT2 lrescan_a ) ;

#ifdef SIGMET_SETUP_H
void set_fork_priority         /* File: iris_processes.c */
( volatile struct iris_setup *piriscf_a ) ;
#endif /* #ifdef SIGMET_SETUP_H */

#endif  /* #ifndef MESSAGE_ONLY */
