cdesktopenv/cde/programs/dtsession/SmError.h

112 lines
3.1 KiB
C

/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $TOG: SmError.h /main/6 1998/10/26 17:20:54 mgreess $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/************************************<+>*************************************
****************************************************************************
**
** File: SmError.h
**
** Project: HP DT
**
** Description
** -----------
** Variables and definitions needed for
** Error Handling for the session manager
**
**
** (c) Copyright Hewlett-Packard Company, 1990.
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _smerror_h
#define _smerror_h
/*
* #include statements
*/
/*
* #define statements
*/
/*
* Error messages trapped by X window calls - These are never displayed
*/
#define BAD_ACCESS "Attempt to access unavailable resource"
#define BAD_ATOM "Atom for argument is not a defined atom"
#define BAD_DRAWABLE "Drawable argument is invalid"
#define BAD_MATCH "Drawable is a invalid match for operation"
#define BAD_VALUE "Value in X call is invalid"
#define BAD_WINDOW "Window does not exist"
#define DEFAULT_ERROR "Non-fatal error from X server"
/*
* typedef statements
*/
/*
* All NLS error messages
*/
typedef struct _NlsStrings
{
char *cantLockErrorString;
char *trustedSystemErrorString;
char *cantMallocErrorString;
char *cantOpenFileString;
char *cantForkClientString;
char *cantExecClientString;
char *cantCreateDirsString;
} NlsStrings;
/*
* External variables
*/
extern NlsStrings smNLS;
/*
* External Interface
*/
extern void InitErrorHandler( void ) ;
extern void PrintError( DtSeverity , char *) ;
extern void PrintErrnoError( DtSeverity , char *) ;
#ifndef NO_MESSAGE_CATALOG
char * GetMessage( int, int, char * );
#endif
#endif /*_smerror_h*/
/* DON'T ADD ANYTHING AFTER THIS #endif */