Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
/*
* (c) Copyright 1995 Digital Equipment Corporation.
* (c) Copyright 1995 Hewlett-Packard Company.
* (c) Copyright 1995 International Business Machines Corp.
* (c) Copyright 1995 Sun Microsystems, Inc.
* (c) Copyright 1995 Novell, Inc.
* (c) Copyright 1995 FUJITSU LIMITED.
* (c) Copyright 1995 Hitachi.
*
* MsgLog.h - Public header file for the Message Logging Service
*
* $XConsortium: MsgLog.h /main/5 1995/07/14 13:22:57 drk $
*
*/
#ifndef _Dt_MsgLog_h
#define _Dt_MsgLog_h
#include <stdio.h> /* needed for FILE */
#ifdef __cplusplus
extern "C" {
#endif
# include <stdarg.h>
/*
* Type declarations
*/
typedef enum {
DtMsgLogInformation,
DtMsgLogStderr,
DtMsgLogDebug,
DtMsgLogWarning,
DtMsgLogError
} DtMsgLogType;
typedef void (*DtMsgLogHandler) (
const char * program_name,
DtMsgLogType msg_type,
const char * format,
va_list args );
/*
* Function declarations
*/
extern void DtMsgLogMessage (
const char * program_name,
DtMsgLogType msg_type,
const char * format,
... );
extern DtMsgLogHandler DtMsgLogSetHandler (
DtMsgLogHandler handler );
extern FILE * DtMsgLogOpenFile (
const char * type,
char ** filename_return); /* MODIFIED */
#ifdef __cplusplus
}
#endif
#endif /* _Dt_MsgLog_h */