SmError.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $TOG: SmError.h /main/6 1998/10/26 17:20:54 mgreess $ */
  24. /* *
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company *
  26. * (c) Copyright 1993, 1994 International Business Machines Corp. *
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
  28. * (c) Copyright 1993, 1994 Novell, Inc. *
  29. */
  30. /************************************<+>*************************************
  31. ****************************************************************************
  32. **
  33. ** File: SmError.h
  34. **
  35. ** Project: HP DT
  36. **
  37. ** Description
  38. ** -----------
  39. ** Variables and definitions needed for
  40. ** Error Handling for the session manager
  41. **
  42. **
  43. ** (c) Copyright Hewlett-Packard Company, 1990.
  44. **
  45. **
  46. **
  47. ****************************************************************************
  48. ************************************<+>*************************************/
  49. #ifndef _smerror_h
  50. #define _smerror_h
  51. /*
  52. * #include statements
  53. */
  54. /*
  55. * #define statements
  56. */
  57. /*
  58. * Error messages trapped by X window calls - These are never displayed
  59. */
  60. #define BAD_ACCESS "Attempt to access unavailable resource"
  61. #define BAD_ATOM "Atom for argument is not a defined atom"
  62. #define BAD_DRAWABLE "Drawable argument is invalid"
  63. #define BAD_MATCH "Drawable is a invalid match for operation"
  64. #define BAD_VALUE "Value in X call is invalid"
  65. #define BAD_WINDOW "Window does not exist"
  66. #define DEFAULT_ERROR "Non-fatal error from X server"
  67. /*
  68. * typedef statements
  69. */
  70. /*
  71. * All NLS error messages
  72. */
  73. typedef struct _NlsStrings
  74. {
  75. char *cantLockErrorString;
  76. char *trustedSystemErrorString;
  77. char *cantMallocErrorString;
  78. char *cantOpenFileString;
  79. char *cantForkClientString;
  80. char *cantExecClientString;
  81. char *cantCreateDirsString;
  82. } NlsStrings;
  83. /*
  84. * External variables
  85. */
  86. extern NlsStrings smNLS;
  87. /*
  88. * External Interface
  89. */
  90. extern void InitErrorHandler( void ) ;
  91. extern void PrintError( DtSeverity , char *) ;
  92. extern void PrintErrnoError( DtSeverity , char *) ;
  93. #ifndef NO_MESSAGE_CATALOG
  94. char * GetMessage( int, int, char * );
  95. #endif
  96. #endif /*_smerror_h*/
  97. /* DON'T ADD ANYTHING AFTER THIS #endif */