home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / gui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  65 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef _GUI_H_
  20. #define _GUI_H_
  21.  
  22. /* These are defined in libnet/mkhttp.c.
  23.  
  24.   XP_AppName      The name of the client program - usually "Netscape", but
  25.                   possibly something else for bundled versions, like the
  26.                   MCI client.
  27.  
  28.   XP_AppCodeName  The name sent at the HTTP vendor ID string; regardless of 
  29.                   the value of XP_AppName, this must be "Mozilla" or 
  30.                   everything will break.
  31.  
  32.   XP_AppVersion   The version number of the client as a string.  This is the
  33.                   string sent along with the vendor ID string, so it should be
  34.                   of the form "1.1N (Windows)" or "1.1N (X11; SunOS 4.1.3)".
  35.  
  36.   XP_AppLanguage  The language of the navigator client.  Usually a two-letter
  37.                   code (EN, FR) but could be a 5-letter code for translations
  38.                   where a sub-language designation is appropriate (FR_CA)
  39.  
  40.   XP_AppPlatform  The compiled flavor of the navigator (as opposed to what 
  41.                   it may actually be running on).
  42.  */
  43.  
  44. XP_BEGIN_PROTOS
  45. #if defined(XP_WIN) || defined(XP_OS2)
  46. extern char *XP_AppName, *XP_AppCodeName, *XP_AppVersion;
  47. extern char *XP_AppLanguage, *XP_AppPlatform;
  48. #else
  49. extern const char *XP_AppName, *XP_AppCodeName, *XP_AppVersion;
  50. extern const char *XP_AppLanguage, *XP_AppPlatform;
  51. #endif
  52. XP_END_PROTOS
  53.  
  54. /* this define is needed for error message efficiency
  55.  *
  56.  * please don't comment it out for UNIX - LJM
  57.  */
  58. /* this is constant across languages - do NOT localize it */
  59. #define XP_CANONICAL_CLIENT_NAME "Netscape"
  60.  
  61. /* name of the program */
  62. /* XP_LOCAL_CLIENT_NAME was never used consistently: use XP_AppName instead. */
  63.  
  64. #endif /* _GUI_H_ */
  65.