/**C*
 *
 * Vaisala software source code file
 *
 * Copyright (c) Vaisala Oyj 2011, 2013.
 * All rights reserved.
 *
 * The terms "Vaisala" and "Vaisala Group" are defined as
 * "Vaisala Oyj and all its subsidiaries".
 *
 **C*/

/** @file
 *
 * Support for legacy message signaling
 *
 * $URL: https://subversion.vaisala.com/svn/repos/sigmet/wr_iris_rda/tags/release8.13.6/base/user_lib/messages.h $
 *
 * $Id: messages.h 29242 2013-03-21 19:30:59Z jho $
 *
 */

#ifndef SIGMET_MESSAGES_H
#define SIGMET_MESSAGES_H

inline static void sigmsg_init(void)
{
#ifdef ENABLE_NLS 
  setlocale( LC_ALL, "" );
#ifdef GETTEXT_PACKAGE
  textdomain (GETTEXT_PACKAGE); 
  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); 
#endif
#endif

#ifdef ANTENNA_LIB_INIT
  ANTENNA_LIB_INIT;
#endif
#ifdef AUDIO_LIB_INIT
  AUDIO_LIB_INIT;
#endif
#ifdef CONFIG_LIB_INIT
  CONFIG_LIB_INIT;
#endif
#ifdef DSP_LIB_INIT
  DSP_LIB_INIT;
#endif
#ifdef DPOLAPP_LIB_INIT
  DPOLAPP_LIB_INIT;
#endif
#ifdef HIMATH_LIB_INIT
  HIMATH_LIB_INIT;
#endif
#ifdef IRISSCAN_LIB_INIT
  IRISSCAN_LIB_INIT;
#endif
#ifdef MAPS_LIB_INIT
  MAPS_LIB_INIT;
#endif
#ifdef MISC_LIB_INIT
  MISC_LIB_INIT;
#endif
#ifdef NETCARDS_LIB_INIT
  NETCARDS_LIB_INIT;
#endif
#ifdef OUT_LIB_INIT
  OUT_LIB_INIT;
#endif
#ifdef PCICARDS_LIB_INIT
  PCICARDS_LIB_INIT;
#endif
#ifdef RCP8_LIB_INIT
  RCP8_LIB_INIT;
#endif
#ifdef RDASUBS_LIB_INIT
  RDASUBS_LIB_INIT;
#endif
#ifdef RIBBON_LIB_INIT
  RIBBON_LIB_INIT;
#endif
#ifdef RTQ_LIB_INIT
  RTQ_LIB_INIT;
#endif
#ifdef RVP8MAIN_LIB_INIT
  RVP8MAIN_LIB_INIT;
#endif
#ifdef RVP9MAIN_LIB_INIT
  RVP9MAIN_LIB_INIT;
#endif
#ifdef RVPXPROC_LIB_INIT
  RVPXPROC_LIB_INIT;
#endif
#ifdef SHARE_LIB_INIT
  SHARE_LIB_INIT;
#endif
#ifdef SOFTPLANE_LIB_INIT
  SOFTPLANE_LIB_INIT;
#endif
#ifdef TSARCH_LIB_INIT
  TSARCH_LIB_INIT;
#endif
#ifdef TVSUBS_LIB_INIT
  TVSUBS_LIB_INIT;
#endif
#ifdef USER_LIB_INIT
  USER_LIB_INIT;
#endif
#ifdef UXSIG_LIB_INIT
  UXSIG_LIB_INIT;
#endif
#ifdef VTV_LIB_INIT
  VTV_LIB_INIT;
#endif
#ifdef XSIG_LIB_INIT
  XSIG_LIB_INIT;
#endif
};

#ifdef __cplusplus
extern "C" {
#endif

void sig_signal                /* In error_report.c */
  ( const MESSAGE imessage ); 

/* Flag bits in icount_a below
 */
#define SIG_COUNT_MASK     (0x0000FFFF)
#define SIG_IGNORE_MESSAGE (0x00020000)
#define SIG_SAY_MESSAGE    (0x00040000)
#define SIG_INFO_MESSAGE   (0x00080000)
#define SIG_YEAR_MESSAGE   (0x00100000)  /* Message should include year */
void sig_signal_va             /* In error_report.c */
  ( MESSAGE imessage,
    UINT4 icount_a, ...) ;
#ifdef __cplusplus
}
#endif


#endif /* SIGMET_MESSAGES_H */
